Browse Source

discv5: fixed state machine lockup bug

Zsolt Felfoldi 9 năm trước cách đây
mục cha
commit
09baeec0da
1 tập tin đã thay đổi với 3 bổ sung0 xóa
  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