fix(trie): delete removed node from updated nodes in sparse trie (#13822)

This commit is contained in:
Alexey Shekhirin
2025-01-16 11:09:37 +00:00
committed by GitHub
parent 1948e0f79c
commit f1f9d5a652

View File

@ -835,6 +835,7 @@ impl<P> RevealedSparseTrie<P> {
{
// If new tree and hash masks are empty, but previously they weren't, we
// need to remove the node.
updates.updated_nodes.remove(&path);
updates.removed_nodes.insert(path.clone());
}