mirror of
https://github.com/hl-archive-node/nanoreth.git
synced 2025-12-06 10:59:55 +00:00
fix: remove redundant checking for if peer is banned (#7069)
Signed-off-by: int88 <golden-miner@qq.com>
This commit is contained in:
@ -735,11 +735,6 @@ impl PeersManager {
|
||||
_ => break,
|
||||
};
|
||||
|
||||
// If best peer does not meet reputation threshold exit immediately.
|
||||
if peer.is_banned() {
|
||||
break
|
||||
}
|
||||
|
||||
trace!(target: "net::peers", ?peer_id, addr=?peer.addr, "schedule outbound connection");
|
||||
|
||||
peer.state = PeerConnectionState::PendingOut;
|
||||
|
||||
Reference in New Issue
Block a user