Fix #10688 being misimplemented (#10721)

This commit is contained in:
Pierre Krieger authored and GitHub committed 2022-01-24 09:48:44 +00:00
1 parent 3c3ad00412
commit 58ebadb366
1 file changed
+1 -1
+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);