Unverified Commit e323ed5a authored by Péter Szilágyi's avatar Péter Szilágyi Committed by GitHub

Merge pull request #15557 from MaximilianMeister/bootnodes-toml

cmd/utils: bootstrap nodes in config file were not respected
parents 6bb61ee9 62dc5307
......@@ -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