mirror of
https://github.com/paradigmxyz/reth.git
synced 2026-04-08 03:01:12 -04:00
feat(trie): add TrieUpdates::clear (#17359)
This commit is contained in:
@@ -133,6 +133,13 @@ impl TrieUpdates {
|
||||
.collect(),
|
||||
}
|
||||
}
|
||||
|
||||
/// Clears the nodes and storage trie maps in this `TrieUpdates`.
|
||||
pub fn clear(&mut self) {
|
||||
self.account_nodes.clear();
|
||||
self.removed_nodes.clear();
|
||||
self.storage_tries.clear();
|
||||
}
|
||||
}
|
||||
|
||||
/// Trie updates for storage trie of a single account.
|
||||
|
||||
Reference in New Issue
Block a user