discv5: fixed state machine lockup bug

This commit is contained in:
Zsolt Felfoldi 2016-11-11 03:10:46 +01:00
parent 80ea44c485
commit 09baeec0da

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