ignore peers with low csc
This commit is contained in:
parent
f5354eb46d
commit
e7610ece97
|
@ -1668,7 +1668,7 @@ proc resolvePeer(peer: Peer) =
|
||||||
proc handlePeer*(peer: Peer) {.async: (raises: [CancelledError]).} =
|
proc handlePeer*(peer: Peer) {.async: (raises: [CancelledError]).} =
|
||||||
let res = peer.network.peerPool.addPeerNoWait(peer, peer.direction)
|
let res = peer.network.peerPool.addPeerNoWait(peer, peer.direction)
|
||||||
case res:
|
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,
|
# Peer has low score or we do not have enough space in PeerPool,
|
||||||
# we are going to disconnect it gracefully.
|
# we are going to disconnect it gracefully.
|
||||||
# Peer' state will be updated in connection event.
|
# Peer' state will be updated in connection event.
|
||||||
|
|
Loading…
Reference in New Issue