mirror of
https://gitlab.com/pulsechaincom/lighthouse-pulse.git
synced 2025-01-03 09:47:38 +00:00
Correct discovery logic (#5111)
This commit is contained in:
parent
b7c9b27872
commit
5851027bfd
@ -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
|
||||||
};
|
};
|
||||||
|
Loading…
Reference in New Issue
Block a user