From a8078f66dd4e6455ce9f8a5ce89354ce4e44b7a1 Mon Sep 17 00:00:00 2001 From: Roman Krasiuk Date: Tue, 17 Sep 2024 23:58:22 +0200 Subject: [PATCH] fix(trie): remove `debug_assert` for storage root (#10973) --- crates/trie/trie/src/witness.rs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/crates/trie/trie/src/witness.rs b/crates/trie/trie/src/witness.rs index 92f7d408c2..0d08396160 100644 --- a/crates/trie/trie/src/witness.rs +++ b/crates/trie/trie/src/witness.rs @@ -135,7 +135,7 @@ where )?); } - let storage_root = Self::next_root_from_proofs(storage_trie_nodes, |key: Nibbles| { + Self::next_root_from_proofs(storage_trie_nodes, |key: Nibbles| { // Right pad the target with 0s. let mut padded_key = key.pack(); padded_key.resize(32, 0); @@ -154,7 +154,6 @@ where self.witness.insert(keccak256(node.as_ref()), node.clone()); // record in witness Ok(node) })?; - debug_assert_eq!(storage_multiproof.root, storage_root); } Self::next_root_from_proofs(account_trie_nodes, |key: Nibbles| {