lighthouse/beacon_node/lighthouse_network/src/peer_manager
Age Manning 6625aa4afe Status'd Peer Not Found (#2761)
## Issue Addressed

Users are experiencing `Status'd peer not found` errors

## Proposed Changes

Although I cannot reproduce this error, this is only one connection state change that is not addressed in the peer manager (that I could see). The error occurs because the number of disconnected peers in the peerdb becomes out of sync with the actual number of disconnected peers. From what I can tell almost all possible connection state changes are handled, except for the case when a disconnected peer changes to be disconnecting. This can potentially happen at the peer connection limit, where a previously connected peer switches to disconnecting. 

This PR decrements the disconnected counter when this event occurs and from what I can tell, covers all possible disconnection state changes in the peer manager.
2021-11-28 22:46:17 +00:00
..
peerdb Status'd Peer Not Found (#2761) 2021-11-28 22:46:17 +00:00
config.rs Peer manager cfg (#2766) 2021-11-03 23:44:44 +00:00
mod.rs Allow additional subnet peers (#2823) 2021-11-25 21:27:08 +00:00
network_behaviour.rs Revert peer DB changes from #2724 (#2828) 2021-11-25 03:45:52 +00:00
peerdb.rs Status'd Peer Not Found (#2761) 2021-11-28 22:46:17 +00:00