From 69a8d9841a62af97d98ad59f8c40e34301946b84 Mon Sep 17 00:00:00 2001 From: Péter Szilágyi Date: Tue, 11 Dec 2018 13:41:18 +0200 Subject: cmd/faucet: fix faucet static peer regression --- cmd/faucet/faucet.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'cmd/faucet') diff --git a/cmd/faucet/faucet.go b/cmd/faucet/faucet.go index 2ffe12276..a7c20db77 100644 --- a/cmd/faucet/faucet.go +++ b/cmd/faucet/faucet.go @@ -256,7 +256,7 @@ func newFaucet(genesis *core.Genesis, port int, enodes []*discv5.Node, network u } for _, boot := range enodes { old, err := enode.ParseV4(boot.String()) - if err != nil { + if err == nil { stack.Server().AddPeer(old) } } -- cgit