Skip to content

Commit ff1b0b5

Browse files
committed
add a bit more logging
1 parent e5b79a4 commit ff1b0b5

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

tests/block-verifier/src/main.rs

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,13 @@ async fn main() -> Result<()> {
5555
let diff = max - min;
5656

5757
// ensure the max - min is within MAX_BLOCK_HEIGHT_DIFF
58+
info!(
59+
max_height = %max,
60+
min_height = %min,
61+
height_diff = %diff,
62+
provider_count = %providers.len(),
63+
"block height verification"
64+
);
5865
if diff > MAX_BLOCK_HEIGHT_DIFF {
5966
error!(%max, %min, %diff, max_diff = %MAX_BLOCK_HEIGHT_DIFF, "❌ block numbers too far apart");
6067
anyhow::bail!(

0 commit comments

Comments
 (0)