discv5: fixed state machine lockup bug

pull/3248/head
Zsolt Felfoldi 8 years ago
parent 80ea44c485
commit 09baeec0da
  1. 3
      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

Loading…
Cancel
Save