mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-08-20 10:52:25 +00:00
cmd/utils: fix parsing BootstrapNodes from BootnodesFlag
This commit is contained in:
parent
766272ff8c
commit
63c17e47c6
1 changed files with 2 additions and 5 deletions
|
|
@ -1042,11 +1042,8 @@ func setBootstrapNodes(ctx *cli.Context, cfg *p2p.Config) {
|
||||||
urls = params.SepoliaBootnodes
|
urls = params.SepoliaBootnodes
|
||||||
case ctx.Bool(GoerliFlag.Name):
|
case ctx.Bool(GoerliFlag.Name):
|
||||||
urls = params.GoerliBootnodes
|
urls = params.GoerliBootnodes
|
||||||
}
|
case cfg.BootstrapNodesV5 != nil:
|
||||||
|
return // already set, don't apply defaults.
|
||||||
// don't apply defaults if BootstrapNodes is already set
|
|
||||||
if cfg.BootstrapNodes != nil {
|
|
||||||
return
|
|
||||||
}
|
}
|
||||||
|
|
||||||
cfg.BootstrapNodes = make([]*enode.Node, 0, len(urls))
|
cfg.BootstrapNodes = make([]*enode.Node, 0, len(urls))
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue