mirror of https://github.com/status-im/op-geth.git
eth: don't warn if no BootNodes are specified
This commit is contained in:
parent
9915d3c3be
commit
f1ebad2508
|
@ -46,6 +46,9 @@ type Config struct {
|
||||||
func (cfg *Config) parseBootNodes() []*discover.Node {
|
func (cfg *Config) parseBootNodes() []*discover.Node {
|
||||||
var ns []*discover.Node
|
var ns []*discover.Node
|
||||||
for _, url := range strings.Split(cfg.BootNodes, " ") {
|
for _, url := range strings.Split(cfg.BootNodes, " ") {
|
||||||
|
if url == "" {
|
||||||
|
continue
|
||||||
|
}
|
||||||
n, err := discover.ParseNode(url)
|
n, err := discover.ParseNode(url)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
logger.Errorf("Bootstrap URL %s: %v\n", url, err)
|
logger.Errorf("Bootstrap URL %s: %v\n", url, err)
|
||||||
|
|
Loading…
Reference in New Issue