From ac73b520794faa3ea0e428274ebbeffc2719bb53 Mon Sep 17 00:00:00 2001 From: Alexey Shekhirin <5773434+shekhirin@users.noreply.github.com> Date: Thu, 16 Jan 2025 08:47:14 +0000 Subject: [PATCH] fix(trie): remove branch nodes from updates if it was deleted (#13813) --- crates/trie/sparse/src/trie.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/crates/trie/sparse/src/trie.rs b/crates/trie/sparse/src/trie.rs index 21a64c0d6c..b00b7f4ab9 100644 --- a/crates/trie/sparse/src/trie.rs +++ b/crates/trie/sparse/src/trie.rs @@ -1113,6 +1113,7 @@ impl RevealedSparseTrie

{ } if let Some(updates) = self.updates.as_mut() { + updates.updated_nodes.remove(&removed_path); updates.removed_nodes.insert(removed_path.clone()); }