Skip to content

Commit

Permalink
traces
Browse files Browse the repository at this point in the history
  • Loading branch information
DaniPopes committed Oct 1, 2024
1 parent 9d31df6 commit d01f2b4
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions src/hash_builder/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -248,9 +248,10 @@ impl HashBuilder {
let leaf_node = LeafNodeRef::new(&short_node_key, leaf_value);
self.rlp_buf.clear();
let rlp = leaf_node.rlp(&mut self.rlp_buf);
trace!(target: "trie::hash_builder",
trace!(
target: "trie::hash_builder",
?leaf_node,
rlp = hex::encode(&rlp),
?rlp,
"pushing leaf node",
);
self.stack.push(rlp);
Expand Down Expand Up @@ -279,7 +280,8 @@ impl HashBuilder {

self.rlp_buf.clear();
let rlp = extension_node.rlp(&mut self.rlp_buf);
trace!(target: "trie::hash_builder",
trace!(
target: "trie::hash_builder",
?extension_node,
?rlp,
"pushing extension node",
Expand Down

0 comments on commit d01f2b4

Please sign in to comment.