From 62dc530773fa8382275e1d7f3b28086f5c66739b Mon Sep 17 00:00:00 2001 From: Maximilian Meister Date: Sun, 26 Nov 2017 12:41:42 +0100 Subject: [PATCH] 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(+) diff --git a/cmd/utils/flags.go b/cmd/utils/flags.go index 0c89d9a4ce..aa999eaae7 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))