mirror of
https://github.com/sigp/lighthouse.git
synced 2026-05-08 17:26:04 +00:00
Correct discovery logic (#5111)
This commit is contained in:
@@ -916,7 +916,7 @@ impl<TSpec: EthSpec> PeerManager<TSpec> {
|
|||||||
{
|
{
|
||||||
self.max_outbound_dialing_peers()
|
self.max_outbound_dialing_peers()
|
||||||
.saturating_sub(dialing_peers)
|
.saturating_sub(dialing_peers)
|
||||||
- peer_count
|
.saturating_sub(peer_count)
|
||||||
} else {
|
} else {
|
||||||
0
|
0
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user