forked from cerc-io/plugeth
discv5: fixed state machine lockup bug
This commit is contained in:
parent
80ea44c485
commit
09baeec0da
@ -863,6 +863,9 @@ func init() {
|
|||||||
name: "verifywait",
|
name: "verifywait",
|
||||||
handle: func(net *Network, n *Node, ev nodeEvent, pkt *ingressPacket) (*nodeState, error) {
|
handle: func(net *Network, n *Node, ev nodeEvent, pkt *ingressPacket) (*nodeState, error) {
|
||||||
switch ev {
|
switch ev {
|
||||||
|
case pingPacket:
|
||||||
|
net.handlePing(n, pkt)
|
||||||
|
return verifywait, nil
|
||||||
case pongPacket:
|
case pongPacket:
|
||||||
err := net.handleKnownPong(n, pkt)
|
err := net.handleKnownPong(n, pkt)
|
||||||
return known, err
|
return known, err
|
||||||
|
Loading…
Reference in New Issue
Block a user