feat(trie): add TrieUpdates::clear (#17359)

This commit is contained in:
Dan Cline
2025-07-10 18:57:06 -04:00
committed by GitHub
parent 2b142fb198
commit a1dd69ee0e

View File

@@ -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.