fix(trie): remove branch nodes from updates if it was deleted (#13813)

This commit is contained in:
Alexey Shekhirin
2025-01-16 08:47:14 +00:00
committed by GitHub
parent 11bd9dded3
commit ac73b52079

View File

@ -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());
} }