mirror of
https://github.com/paradigmxyz/reth.git
synced 2026-01-30 09:38:24 -05: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