aboutsummaryrefslogtreecommitdiffstats
path: root/eth
diff options
context:
space:
mode:
authorFelix Lange <fjl@twurst.com>2015-02-09 23:17:07 +0800
committerFelix Lange <fjl@twurst.com>2015-02-09 23:17:07 +0800
commitf1ebad2508b6941df5802d607b30b7a5e7b2c67d (patch)
tree427fc326fdc9c94c67abcc5a141f2fbc85743a6c /eth
parent9915d3c3be831fa2c95ac277459945d969bd7b06 (diff)
downloadgo-tangerine-f1ebad2508b6941df5802d607b30b7a5e7b2c67d.tar
go-tangerine-f1ebad2508b6941df5802d607b30b7a5e7b2c67d.tar.gz
go-tangerine-f1ebad2508b6941df5802d607b30b7a5e7b2c67d.tar.bz2
go-tangerine-f1ebad2508b6941df5802d607b30b7a5e7b2c67d.tar.lz
go-tangerine-f1ebad2508b6941df5802d607b30b7a5e7b2c67d.tar.xz
go-tangerine-f1ebad2508b6941df5802d607b30b7a5e7b2c67d.tar.zst
go-tangerine-f1ebad2508b6941df5802d607b30b7a5e7b2c67d.zip
eth: don't warn if no BootNodes are specified
Diffstat (limited to 'eth')
-rw-r--r--eth/backend.go3
1 files changed, 3 insertions, 0 deletions
diff --git a/eth/backend.go b/eth/backend.go
index 5ad0f83f4..f5ebc9033 100644
--- a/eth/backend.go
+++ b/eth/backend.go
@@ -46,6 +46,9 @@ type Config struct {
func (cfg *Config) parseBootNodes() []*discover.Node {
var ns []*discover.Node
for _, url := range strings.Split(cfg.BootNodes, " ") {
+ if url == "" {
+ continue
+ }
n, err := discover.ParseNode(url)
if err != nil {
logger.Errorf("Bootstrap URL %s: %v\n", url, err)