mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-07-22 13:45:40 +00:00
@@ -827,7 +827,7 @@ impl<B: BlockT> Protocol<B> {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if status.roles.is_light() &&
|
if status.roles.is_light() &&
|
||||||
(self.peers.len() - self.sync.num_peers()) < self.default_peers_set_num_light
|
(self.peers.len() - self.sync.num_peers()) >= self.default_peers_set_num_light
|
||||||
{
|
{
|
||||||
// Make sure that not all slots are occupied by light clients.
|
// Make sure that not all slots are occupied by light clients.
|
||||||
debug!(target: "sync", "Too many light nodes, rejecting {}", who);
|
debug!(target: "sync", "Too many light nodes, rejecting {}", who);
|
||||||
|
|||||||
Reference in New Issue
Block a user