diff --git a/p2p/discover/v5_udp.go b/p2p/discover/v5_udp.go index c13032e1af..5f14784511 100644 --- a/p2p/discover/v5_udp.go +++ b/p2p/discover/v5_udp.go @@ -464,7 +464,7 @@ func (t *UDPv5) waitForNodes(c *callV5, distances []uint) ([]*enode.Node, error) if total == -1 { total = min(int(response.RespCount), totalNodesResponseLimit) } - if received++; received == total { + if received++; received >= total { return nodes, nil } case err := <-c.err: