ignore peers with low csc

This commit is contained in:
Agnish Ghosh 2024-08-18 13:10:21 +05:30
parent f5354eb46d
commit e7610ece97
No known key found for this signature in database
GPG Key ID: 7BDDA05D1B25E9F8
1 changed files with 1 additions and 1 deletions

View File

@ -1668,7 +1668,7 @@ proc resolvePeer(peer: Peer) =
proc handlePeer*(peer: Peer) {.async: (raises: [CancelledError]).} =
let res = peer.network.peerPool.addPeerNoWait(peer, peer.direction)
case res:
of PeerStatus.LowScoreError, PeerStatus.LowCscError, PeerStatus.NoSpaceError:
of PeerStatus.LowScoreError, PeerStatus.NoSpaceError:
# Peer has low score or we do not have enough space in PeerPool,
# we are going to disconnect it gracefully.
# Peer' state will be updated in connection event.