Skip to content

Commit 9611071

Browse files
tomakaark0f
authored andcommitted
Fix paritytech#10688 being misimplemented (paritytech#10721)
1 parent a6e8fc0 commit 9611071

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

client/network/src/protocol.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -827,7 +827,7 @@ impl<B: BlockT> Protocol<B> {
827827
}
828828

829829
if status.roles.is_light() &&
830-
(self.peers.len() - self.sync.num_peers()) < self.default_peers_set_num_light
830+
(self.peers.len() - self.sync.num_peers()) >= self.default_peers_set_num_light
831831
{
832832
// Make sure that not all slots are occupied by light clients.
833833
debug!(target: "sync", "Too many light nodes, rejecting {}", who);

0 commit comments

Comments
 (0)