mirror of
https://github.com/sigp/lighthouse.git
synced 2026-03-09 19:51:47 +00:00
Consistent tracking of disconnected peers (#2650)
## Issue Addressed N/A ## Proposed Changes When peers switching to a disconnecting state, decrement the disconnected peers counter. This also downgrades some crit logs to errors. I've also added a re-sync point when peers get unbanned the disconnected peer count will match back to the number of disconnected peers if it has gone out of sync previously.
This commit is contained in:
@@ -672,7 +672,7 @@ impl<T: BeaconChainTypes> SyncManager<T> {
|
||||
}
|
||||
peer_info.is_connected()
|
||||
} else {
|
||||
crit!(self.log, "Status'd peer is unknown"; "peer_id" => %peer_id);
|
||||
error!(self.log, "Status'd peer is unknown"; "peer_id" => %peer_id);
|
||||
false
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user