mirror of
https://github.com/hl-archive-node/nanoreth.git
synced 2025-12-06 10:59:55 +00:00
fix(trie): remove branch nodes from updates if it was deleted (#13813)
This commit is contained in:
@ -1113,6 +1113,7 @@ impl<P: BlindedProvider> RevealedSparseTrie<P> {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if let Some(updates) = self.updates.as_mut() {
|
if let Some(updates) = self.updates.as_mut() {
|
||||||
|
updates.updated_nodes.remove(&removed_path);
|
||||||
updates.removed_nodes.insert(removed_path.clone());
|
updates.removed_nodes.insert(removed_path.clone());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user