Skip to content

Commit 3cd3537

Browse files
committed
update block logging to support new firehose block
1 parent 036f38f commit 3cd3537

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/firehose.rs

+5-1
Original file line numberDiff line numberDiff line change
@@ -21,9 +21,13 @@ fn record_block(block: &codec::Block) {
2121
let header = block.header.as_ref().unwrap();
2222

2323
println!(
24-
"FIRE BLOCK {height:} {hash:} {hex:}",
24+
"FIRE BLOCK {height:} {hash:} {parent_height:} {parent_hash:} {lib:} {timestamp:} {hex:}",
2525
height = header.height,
2626
hash = header.hash.as_ref().unwrap(),
27+
parent_height = header.prev_height,
28+
parent_hash = header.prev_hash.as_ref().unwrap(),
29+
lib = header.last_final_block.as_ref().unwrap(),
30+
timestamp = header.timestamp,
2731
hex = hex::encode(bytes),
2832
);
2933
}

0 commit comments

Comments
 (0)