chore(merkle): add debug log inside incremental loop (#16977)

This commit is contained in:
Dan Cline
2025-06-20 13:55:40 -04:00
committed by GitHub
parent 8f16e2199f
commit 85e6e979c2

View File

@@ -279,6 +279,14 @@ where
for start_block in range.step_by(incremental_threshold as usize) {
let chunk_to = std::cmp::min(start_block + incremental_threshold, to_block);
let chunk_range = start_block..=chunk_to;
debug!(
target: "sync::stages::merkle::exec",
current = ?current_block_number,
target = ?to_block,
incremental_threshold,
chunk_range = ?chunk_range,
"Processing chunk"
);
let (root, updates) =
StateRoot::incremental_root_with_updates(provider.tx_ref(), chunk_range)
.map_err(|e| {