cmd/faucet: fix faucet static peer regression

This commit is contained in:
Péter Szilágyi 2018-12-11 13:41:18 +02:00
parent bb724080ca
commit 69a8d9841a
No known key found for this signature in database
GPG Key ID: E9AE538CEDF8293D

@ -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)
}
}