Skip to content

Commit

Permalink
Merge pull request #15557 from MaximilianMeister/bootnodes-toml
Browse files Browse the repository at this point in the history
cmd/utils: bootstrap nodes in config file were not respected
  • Loading branch information
karalabe authored Nov 28, 2017
2 parents 6bb61ee + 62dc530 commit e323ed5
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions cmd/utils/flags.go
Original file line number Diff line number Diff line change
Expand Up @@ -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))
Expand Down

0 comments on commit e323ed5

Please sign in to comment.