mirror of
https://github.com/paradigmxyz/reth.git
synced 2026-01-26 23:58:46 -05:00
fix: in-memory trie updates pruning (#11580)
Co-authored-by: Matthias Seitz <matthias.seitz@outlook.de>
This commit is contained in:
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user