mirror of
https://github.com/paradigmxyz/reth.git
synced 2026-01-30 01:28:21 -05:00
fix(tree): reset cached trie updates on prepend (#6167)
This commit is contained in:
@@ -76,6 +76,7 @@ impl Chain {
|
||||
/// Prepends the given state to the current state.
|
||||
pub fn prepend_state(&mut self, state: BundleState) {
|
||||
self.state.prepend_state(state);
|
||||
self.trie_updates.take(); // invalidate cached trie updates
|
||||
}
|
||||
|
||||
/// Return true if chain is empty and has no blocks.
|
||||
|
||||
Reference in New Issue
Block a user