Commit 62dc5307 authored by Maximilian Meister's avatar Maximilian Meister

cmd/utils: bootstrap nodes in config file were not respected

Signed-off-by: 's avatarMaximilian Meister <mmeister@suse.de>
parent e4c9fd29
......@@ -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))
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment