Skip to content

Commit

Permalink
Fix paritytech#10688 being misimplemented (paritytech#10721)
Browse files Browse the repository at this point in the history
  • Loading branch information
tomaka authored and ark0f committed Feb 27, 2023
1 parent a6e8fc0 commit 9611071
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 9611071

Please sign in to comment.