From 62dc530773fa8382275e1d7f3b28086f5c66739b Mon Sep 17 00:00:00 2001 From: Maximilian Meister Date: Sun, 26 Nov 2017 12:41:42 +0100 Subject: cmd/utils: bootstrap nodes in config file were not respected Signed-off-by: Maximilian Meister --- cmd/utils/flags.go | 2 ++ 1 file changed, 2 insertions(+) (limited to 'cmd/utils') 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)) -- cgit