Skip to content

Commit 27a88ea

Browse files
andrepattasadoci
authored andcommitted
cmd/utils: fix applying bootstrap nodes from config file (ethereum#25174)
1 parent e9c8aef commit 27a88ea

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

cmd/utils/flags.go

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1193,8 +1193,11 @@ func setBootstrapNodes(ctx *cli.Context, cfg *p2p.Config) {
11931193
urls = params.GoerliBootnodes
11941194
case ctx.Bool(KilnFlag.Name):
11951195
urls = params.KilnBootnodes
1196-
case cfg.BootstrapNodes != nil:
1197-
return // already set, don't apply defaults.
1196+
}
1197+
1198+
// don't apply defaults if BootstrapNodes is already set
1199+
if cfg.BootstrapNodes != nil {
1200+
return
11981201
}
11991202

12001203
cfg.BootstrapNodes = make([]*enode.Node, 0, len(urls))

0 commit comments

Comments
 (0)