Fix #10688 being misimplemented (#10721)

This commit is contained in:
Pierre Krieger
2022-01-24 10:48:44 +01:00
committed by GitHub
parent 3c3ad00412
commit 58ebadb366
+1 -1
View File
@@ -827,7 +827,7 @@ impl<B: BlockT> Protocol<B> {
}
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.
debug!(target: "sync", "Too many light nodes, rejecting {}", who);