forked from cerc-io/plugeth
cmd/faucet: fix faucet static peer regression
This commit is contained in:
parent
bb724080ca
commit
69a8d9841a
@ -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)
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user