discv5: fixed state machine lockup bug
This commit is contained in:
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
|
||||
|
Loading…
Reference in New Issue
Block a user