Skip to content

Commit 9f02330

Browse files
mediocregopherlwedge99
authored andcommitted
chore(trie): dont warn on blinded node reveals (paradigmxyz#18317)
1 parent a07aca0 commit 9f02330

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

crates/trie/sparse-parallel/src/trie.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ use std::{
2121
cmp::{Ord, Ordering, PartialOrd},
2222
sync::mpsc,
2323
};
24-
use tracing::{instrument, trace, warn};
24+
use tracing::{debug, instrument, trace};
2525

2626
/// The maximum length of a path, in nibbles, which belongs to the upper subtrie of a
2727
/// [`ParallelSparseTrie`]. All longer paths belong to a lower subtrie.
@@ -334,7 +334,7 @@ impl SparseTrieInterface for ParallelSparseTrie {
334334
if let Some(reveal_path) = reveal_path {
335335
let subtrie = self.subtrie_for_path_mut(&reveal_path);
336336
if subtrie.nodes.get(&reveal_path).expect("node must exist").is_hash() {
337-
warn!(
337+
debug!(
338338
target: "trie::parallel_sparse",
339339
child_path = ?reveal_path,
340340
leaf_full_path = ?full_path,
@@ -615,7 +615,7 @@ impl SparseTrieInterface for ParallelSparseTrie {
615615
let remaining_child_node =
616616
match remaining_child_subtrie.nodes.get(&remaining_child_path).unwrap() {
617617
SparseNode::Hash(_) => {
618-
warn!(
618+
debug!(
619619
target: "trie::parallel_sparse",
620620
child_path = ?remaining_child_path,
621621
leaf_full_path = ?full_path,
@@ -1542,7 +1542,7 @@ impl SparseSubtrie {
15421542
LeafUpdateStep::Complete { reveal_path, .. } => {
15431543
if let Some(reveal_path) = reveal_path {
15441544
if self.nodes.get(&reveal_path).expect("node must exist").is_hash() {
1545-
warn!(
1545+
debug!(
15461546
target: "trie::parallel_sparse",
15471547
child_path = ?reveal_path,
15481548
leaf_full_path = ?full_path,

crates/trie/sparse/src/trie.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ use reth_trie_common::{
2424
TrieNode, CHILD_INDEX_RANGE, EMPTY_ROOT_HASH,
2525
};
2626
use smallvec::SmallVec;
27-
use tracing::{trace, warn};
27+
use tracing::{debug, trace};
2828

2929
/// The level below which the sparse trie hashes are calculated in
3030
/// [`SerialSparseTrie::update_subtrie_hashes`].
@@ -640,7 +640,7 @@ impl SparseTrieInterface for SerialSparseTrie {
640640
if self.updates.is_some() {
641641
// Check if the extension node child is a hash that needs to be revealed
642642
if self.nodes.get(&current).unwrap().is_hash() {
643-
warn!(
643+
debug!(
644644
target: "trie::sparse",
645645
leaf_full_path = ?full_path,
646646
child_path = ?current,
@@ -815,7 +815,7 @@ impl SparseTrieInterface for SerialSparseTrie {
815815
trace!(target: "trie::sparse", ?removed_path, ?child_path, "Branch node has only one child");
816816

817817
if self.nodes.get(&child_path).unwrap().is_hash() {
818-
warn!(
818+
debug!(
819819
target: "trie::sparse",
820820
?child_path,
821821
leaf_full_path = ?full_path,

0 commit comments

Comments
 (0)