cmd: stop parsing bootnodes if one is invalid

This commit is contained in:
aerth 2018-07-25 20:46:39 -07:00
parent dcdd57df62
commit 900ac1315c
No known key found for this signature in database
GPG key ID: EBC461F686385D5C

View file

@ -644,8 +644,7 @@ func setBootstrapNodes(ctx *cli.Context, cfg *p2p.Config) {
for _, url := range urls {
node, err := discover.ParseNode(url)
if err != nil {
log.Error("Bootstrap URL invalid", "enode", url, "err", err)
continue
log.Crit("Bootstrap URL invalid", "enode", url, "err", err)
}
cfg.BootstrapNodes = append(cfg.BootstrapNodes, node)
}