Correct discovery logic (#5111)

This commit is contained in:
Age Manning
2024-01-23 16:58:24 +11:00
committed by GitHub
parent b7c9b27872
commit 5851027bfd

View File

@@ -916,7 +916,7 @@ impl<TSpec: EthSpec> PeerManager<TSpec> {
{
self.max_outbound_dialing_peers()
.saturating_sub(dialing_peers)
- peer_count
.saturating_sub(peer_count)
} else {
0
};