Skip to content

Commit

Permalink
Validate disconnect theory
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 28, 2023
1 parent 7d7b82c commit 1cb26cd
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
6 changes: 3 additions & 3 deletions polkadot/node/network/approval-distribution/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -583,9 +583,9 @@ 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);
})
// self.blocks.iter_mut().for_each(|(_hash, entry)| {
// entry.known_by.remove(&peer_id);
// })
},
NetworkBridgeEvent::NewGossipTopology(topology) => {
self.handle_new_session_topology(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1195,6 +1195,10 @@ async fn modify_reputation(
peer: PeerId,
rep: Rep,
) {
//TODO: Test teory in versi
if rep == COST_DUPLICATE_STATEMENT {
return
}
reputation.modify(sender, peer, rep).await;
}

Expand Down

0 comments on commit 1cb26cd

Please sign in to comment.