Merge pull request #15557 from MaximilianMeister/bootnodes-toml

cmd/utils: bootstrap nodes in config file were not respected
This commit is contained in:
Péter Szilágyi
2017-11-28 13:34:14 +02:00
committed by GitHub

View File

@ -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))