aboutsummaryrefslogtreecommitdiffstats
path: root/cmd/utils/flags.go
diff options
context:
space:
mode:
authorMaximilian Meister <mmeister@suse.de>2017-11-26 19:41:42 +0800
committerMaximilian Meister <mmeister@suse.de>2017-11-26 19:42:51 +0800
commit62dc530773fa8382275e1d7f3b28086f5c66739b (patch)
tree184d08672c31e814bb798dd0b56fc30d6b4d0de5 /cmd/utils/flags.go
parente4c9fd29a3907367b2b6b7cd32b0098350a94741 (diff)
downloaddexon-62dc530773fa8382275e1d7f3b28086f5c66739b.tar.gz
dexon-62dc530773fa8382275e1d7f3b28086f5c66739b.tar.zst
dexon-62dc530773fa8382275e1d7f3b28086f5c66739b.zip
cmd/utils: bootstrap nodes in config file were not respected
Signed-off-by: Maximilian Meister <mmeister@suse.de>
Diffstat (limited to 'cmd/utils/flags.go')
-rw-r--r--cmd/utils/flags.go2
1 files changed, 2 insertions, 0 deletions
diff --git a/cmd/utils/flags.go b/cmd/utils/flags.go
index 0c89d9a4c..aa999eaae 100644
--- a/cmd/utils/flags.go
+++ b/cmd/utils/flags.go
@@ -584,6 +584,8 @@ func setBootstrapNodes(ctx *cli.Context, cfg *p2p.Config) {
urls = params.TestnetBootnodes
case ctx.GlobalBool(RinkebyFlag.Name):
urls = params.RinkebyBootnodes
+ case cfg.BootstrapNodes != nil:
+ return // already set, don't apply defaults.
}
cfg.BootstrapNodes = make([]*discover.Node, 0, len(urls))