mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-07-26 06:36:43 +00:00
swarm config file options take precedence over command line arguments #3444
This commit is contained in:
parent
3e3edcc465
commit
8dde2e9973
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