mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-07-25 22:26:42 +00:00
swarm config file options take precedence over command line arguments #3444
This commit is contained in:
parent
954e67b5b8
commit
b30aab4638
1 changed files with 4 additions and 0 deletions
|
|
@ -252,6 +252,10 @@ func registerBzzService(ctx *cli.Context, stack *node.Node) {
|
|||
if len(bzzport) > 0 {
|
||||
bzzconfig.Port = bzzport
|
||||
}
|
||||
networkId := ctx.GlobalUint64(SwarmNetworkIdFlag.Name)
|
||||
if networkId > 0 {
|
||||
bzzconfig.NetworkId = networkId
|
||||
}
|
||||
swapEnabled := ctx.GlobalBool(SwarmSwapEnabled.Name)
|
||||
syncEnabled := ctx.GlobalBoolT(SwarmSyncEnabled.Name)
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue