aboutsummaryrefslogtreecommitdiffstats
path: root/p2p
diff options
context:
space:
mode:
authorZsolt Felfoldi <zsfelfoldi@gmail.com>2016-11-11 10:10:46 +0800
committerZsolt Felfoldi <zsfelfoldi@gmail.com>2016-11-11 10:10:46 +0800
commit09baeec0dabc24050f344272ed36e39687c2b4e8 (patch)
tree6afecb653fa3b8df4a71e77ac7b83b4214018f68 /p2p
parent80ea44c485c42032aa954f2a8580e3afb4aa5339 (diff)
downloaddexon-09baeec0dabc24050f344272ed36e39687c2b4e8.tar.gz
dexon-09baeec0dabc24050f344272ed36e39687c2b4e8.tar.zst
dexon-09baeec0dabc24050f344272ed36e39687c2b4e8.zip
discv5: fixed state machine lockup bug
Diffstat (limited to 'p2p')
-rw-r--r--p2p/discv5/net.go3
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