mirror of
https://github.com/sigp/lighthouse.git
synced 2026-03-14 18:32:42 +00:00
log upgrades + prevent dialing of disconnecting peers (#3148)
## Issue Addressed We still ping peers that are considered in a disconnecting state ## Proposed Changes Do not ping peers once we decide they are disconnecting Upgrade logs about ignored rpc messages ## Additional Info --
This commit is contained in:
@@ -213,6 +213,8 @@ impl<TSpec: EthSpec> PeerManager<TSpec> {
|
||||
ScoreUpdateResult::Disconnect => {
|
||||
// The peer has transitioned to a disconnect state and has been marked as such in
|
||||
// the peer db. We must inform libp2p to disconnect this peer.
|
||||
self.inbound_ping_peers.remove(peer_id);
|
||||
self.outbound_ping_peers.remove(peer_id);
|
||||
self.events.push(PeerManagerEvent::DisconnectPeer(
|
||||
*peer_id,
|
||||
GoodbyeReason::BadScore,
|
||||
|
||||
Reference in New Issue
Block a user