Skip to content
This repository has been archived by the owner on Nov 15, 2023. It is now read-only.

Commit

Permalink
Fix #10688 being misimplemented (#10721)
Browse files Browse the repository at this point in the history
  • Loading branch information
tomaka authored and chevdor committed Jan 24, 2022
1 parent 6ee7b44 commit ac8c2cd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion client/network/src/protocol.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit ac8c2cd

Please sign in to comment.