Skip to content
This repository has been archived by the owner on Nov 15, 2023. It is now read-only.

Commit

Permalink
Do not cleanup peer-knowledge on peer-connected/disconnected
Browse files Browse the repository at this point in the history
Signed-off-by: Alexandru Gheorghe <alexandru.gheorghe@parity.io>
  • Loading branch information
alexggh committed Aug 23, 2023
1 parent a908447 commit e8ac355
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions node/network/approval-distribution/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -599,9 +599,10 @@ impl State {
NetworkBridgeEvent::PeerDisconnected(peer_id) => {
gum::trace!(target: LOG_TARGET, ?peer_id, "Peer disconnected");
self.peer_views.remove(&peer_id);
self.blocks.iter_mut().for_each(|(_hash, entry)| {
entry.known_by.remove(&peer_id);
})
// TODO: Test some hypot
// self.blocks.iter_mut().for_each(|(_hash, entry)| {
// entry.known_by.remove(&peer_id);
// })
},
NetworkBridgeEvent::NewGossipTopology(topology) => {
self.handle_new_session_topology(
Expand Down

0 comments on commit e8ac355

Please sign in to comment.