diff --git a/polkadot/node/network/approval-distribution/src/lib.rs b/polkadot/node/network/approval-distribution/src/lib.rs index 3b8624e9166d..bdc2f859b909 100644 --- a/polkadot/node/network/approval-distribution/src/lib.rs +++ b/polkadot/node/network/approval-distribution/src/lib.rs @@ -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( diff --git a/polkadot/node/network/statement-distribution/src/legacy_v1/mod.rs b/polkadot/node/network/statement-distribution/src/legacy_v1/mod.rs index b5895cb9f65b..938eb7fe64c0 100644 --- a/polkadot/node/network/statement-distribution/src/legacy_v1/mod.rs +++ b/polkadot/node/network/statement-distribution/src/legacy_v1/mod.rs @@ -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; }