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

Commit 223960f

Browse files
arkpargavofyork
authored andcommitted
Cleanup filtered messages (#4082)
1 parent 50c1cf5 commit 223960f

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

core/network/src/protocol/consensus_gossip.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -448,6 +448,7 @@ impl<B: BlockT> ConsensusGossip<B> {
448448

449449
for (_, ref mut peer) in self.peers.iter_mut() {
450450
peer.known_messages.retain(|h| known_messages.contains_key(h));
451+
peer.filtered_messages.retain(|h, _| known_messages.contains_key(h));
451452
}
452453
}
453454

0 commit comments

Comments
 (0)