diff options
author | Zsolt Felfoldi <zsfelfoldi@gmail.com> | 2016-11-11 10:10:46 +0800 |
---|---|---|
committer | Zsolt Felfoldi <zsfelfoldi@gmail.com> | 2016-11-11 10:10:46 +0800 |
commit | 09baeec0dabc24050f344272ed36e39687c2b4e8 (patch) | |
tree | 6afecb653fa3b8df4a71e77ac7b83b4214018f68 /p2p | |
parent | 80ea44c485c42032aa954f2a8580e3afb4aa5339 (diff) | |
download | go-tangerine-09baeec0dabc24050f344272ed36e39687c2b4e8.tar go-tangerine-09baeec0dabc24050f344272ed36e39687c2b4e8.tar.gz go-tangerine-09baeec0dabc24050f344272ed36e39687c2b4e8.tar.bz2 go-tangerine-09baeec0dabc24050f344272ed36e39687c2b4e8.tar.lz go-tangerine-09baeec0dabc24050f344272ed36e39687c2b4e8.tar.xz go-tangerine-09baeec0dabc24050f344272ed36e39687c2b4e8.tar.zst go-tangerine-09baeec0dabc24050f344272ed36e39687c2b4e8.zip |
discv5: fixed state machine lockup bug
Diffstat (limited to 'p2p')
-rw-r--r-- | p2p/discv5/net.go | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/p2p/discv5/net.go b/p2p/discv5/net.go index afc92e99f..b08cd2bc7 100644 --- a/p2p/discv5/net.go +++ b/p2p/discv5/net.go @@ -863,6 +863,9 @@ func init() { name: "verifywait", handle: func(net *Network, n *Node, ev nodeEvent, pkt *ingressPacket) (*nodeState, error) { switch ev { + case pingPacket: + net.handlePing(n, pkt) + return verifywait, nil case pongPacket: err := net.handleKnownPong(n, pkt) return known, err |