diff --git a/beacon_node/lighthouse_network/src/peer_manager/peerdb.rs b/beacon_node/lighthouse_network/src/peer_manager/peerdb.rs index 61cf8de1cb..70d3399d6a 100644 --- a/beacon_node/lighthouse_network/src/peer_manager/peerdb.rs +++ b/beacon_node/lighthouse_network/src/peer_manager/peerdb.rs @@ -847,6 +847,10 @@ impl PeerDB { PeerConnectionStatus::Disconnecting { .. } => { // The peer has been disconnected but not banned. Inform the peer manager // that this peer could be eligible for a temporary ban. + self.disconnected_peers += 1; + info.set_connection_status(PeerConnectionStatus::Disconnected { + since: Instant::now(), + }); return Some(BanOperation::TemporaryBan); } PeerConnectionStatus::Unknown