pub fn record_successful_sync(state: &mut NeighborSyncState, peer: &PeerId)
Record a successful sync with a peer.