diff options
author | Péter Szilágyi <peterke@gmail.com> | 2018-12-11 19:41:18 +0800 |
---|---|---|
committer | Péter Szilágyi <peterke@gmail.com> | 2018-12-11 19:41:18 +0800 |
commit | 69a8d9841a62af97d98ad59f8c40e34301946b84 (patch) | |
tree | 4e2bba8cbaa84a048bc68fd651713fa8c2095e59 | |
parent | bb724080cac9fa36ec6b638cfd5cf0e54bc23362 (diff) | |
download | go-tangerine-69a8d9841a62af97d98ad59f8c40e34301946b84.tar go-tangerine-69a8d9841a62af97d98ad59f8c40e34301946b84.tar.gz go-tangerine-69a8d9841a62af97d98ad59f8c40e34301946b84.tar.bz2 go-tangerine-69a8d9841a62af97d98ad59f8c40e34301946b84.tar.lz go-tangerine-69a8d9841a62af97d98ad59f8c40e34301946b84.tar.xz go-tangerine-69a8d9841a62af97d98ad59f8c40e34301946b84.tar.zst go-tangerine-69a8d9841a62af97d98ad59f8c40e34301946b84.zip |
cmd/faucet: fix faucet static peer regression
-rw-r--r-- | cmd/faucet/faucet.go | 2 |
1 files changed, 1 insertions, 1 deletions
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) } } |