Pārlūkot izejas kodu

discv5: fixed state machine lockup bug

Zsolt Felfoldi 9 gadi atpakaļ
vecāks
revīzija
09baeec0da
1 mainītis faili ar 3 papildinājumiem un 0 dzēšanām
  1. 3 0
      p2p/discv5/net.go

+ 3 - 0
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