We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 84a902a commit de91c77Copy full SHA for de91c77
beacon_node/lighthouse_network/src/peer_manager/mod.rs
@@ -880,8 +880,7 @@ impl<TSpec: EthSpec> PeerManager<TSpec> {
880
let outbound_only_peer_count = self.network_globals.connected_outbound_only_peers();
881
let wanted_peers = if peer_count < self.target_peers.saturating_sub(dialing_peers) {
882
// We need more peers in general.
883
- // Note: The maximum discovery query is bounded by `Discovery`.
884
- self.target_peers.saturating_sub(dialing_peers) - peer_count
+ self.max_peers().saturating_sub(dialing_peers) - peer_count
885
} else if outbound_only_peer_count < self.min_outbound_only_peers()
886
&& peer_count < self.max_outbound_dialing_peers()
887
{
0 commit comments