fix: in-memory trie updates pruning (#11580)

Co-authored-by: Matthias Seitz <matthias.seitz@outlook.de>
This commit is contained in:
Arsenii Kulikov
2024-10-08 20:18:27 +04:00
committed by GitHub
parent b09734a59c
commit fda6e353d5

View File

@@ -282,7 +282,7 @@ impl TreeState {
}
// remove trie updates that are below the finalized block
self.persisted_trie_updates.retain(|_, (block_num, _)| *block_num < finalized_num);
self.persisted_trie_updates.retain(|_, (block_num, _)| *block_num > finalized_num);
// The only block that should remain at the `finalized` number now, is the finalized
// block, if it exists.