feat(tree): more logs for proofs prefetching (#14263)

This commit is contained in:
Alexey Shekhirin
2025-02-06 11:50:07 +00:00
committed by GitHub
parent 823d065071
commit fd3fe8d6a2
2 changed files with 10 additions and 1 deletions

View File

@ -2707,6 +2707,14 @@ where
targets.insert(keccak256(addr), storage_set);
}
debug!(
target: "engine::tree",
tx_hash = ?tx.tx_hash(),
targets = targets.len(),
storage_targets = targets.values().map(|slots| slots.len()).sum::<usize>(),
"Prefetching proofs for a transaction"
);
let _ = state_root_sender.send(StateRootMessage::PrefetchProofs(targets));
});

View File

@ -676,7 +676,8 @@ where
prefetch_proofs_received += 1;
debug!(
target: "engine::root",
len = targets.len(),
targets = targets.len(),
storage_targets = targets.values().map(|slots| slots.len()).sum::<usize>(),
total_prefetches = prefetch_proofs_received,
"Prefetching proofs"
);