diff --git a/beacon_node/eth2_libp2p/src/discovery/mod.rs b/beacon_node/eth2_libp2p/src/discovery/mod.rs index aae58d15db..04af9b412c 100644 --- a/beacon_node/eth2_libp2p/src/discovery/mod.rs +++ b/beacon_node/eth2_libp2p/src/discovery/mod.rs @@ -369,7 +369,7 @@ impl Discovery { /// updates the min_ttl field. fn add_subnet_query(&mut self, subnet_id: SubnetId, min_ttl: Option, retries: usize) { // remove the entry and complete the query if greater than the maximum search count - if retries >= MAX_DISCOVERY_RETRY { + if retries > MAX_DISCOVERY_RETRY { debug!( self.log, "Subnet peer discovery did not find sufficient peers. Reached max retry limit"