From 590496d0e42f0c17fa54cd11db177b7cee3e6425 Mon Sep 17 00:00:00 2001 From: Alexey Shekhirin <5773434+shekhirin@users.noreply.github.com> Date: Thu, 16 Jan 2025 13:47:18 +0000 Subject: [PATCH] chore(trie): less logs for sparse branch node updates (#13811) --- crates/trie/sparse/src/trie.rs | 17 ++++++++--------- 1 file changed, 8 insertions(+), 9 deletions(-) diff --git a/crates/trie/sparse/src/trie.rs b/crates/trie/sparse/src/trie.rs index 26f1b0dd9..9c168fd77 100644 --- a/crates/trie/sparse/src/trie.rs +++ b/crates/trie/sparse/src/trie.rs @@ -774,15 +774,6 @@ impl

RevealedSparseTrie

{ hash_mask.set_bit(last_child_nibble); hashes.push(hash); } - - trace!( - target: "trie::sparse", - ?path, - ?child_path, - tree_mask_bit_set = should_set_tree_mask_bit, - hash_mask_bit_set = hash.is_some(), - "Updating branch node child masks" - ); } // Insert children in the resulting buffer in a normal order, @@ -801,6 +792,14 @@ impl

RevealedSparseTrie

{ } } + trace!( + target: "trie::sparse", + ?path, + ?tree_mask, + ?hash_mask, + "Branch node masks" + ); + self.rlp_buf.clear(); let branch_node_ref = BranchNodeRef::new(&buffers.branch_value_stack_buf, *state_mask);