We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 036f38f commit 3cd3537Copy full SHA for 3cd3537
src/firehose.rs
@@ -21,9 +21,13 @@ fn record_block(block: &codec::Block) {
21
let header = block.header.as_ref().unwrap();
22
23
println!(
24
- "FIRE BLOCK {height:} {hash:} {hex:}",
+ "FIRE BLOCK {height:} {hash:} {parent_height:} {parent_hash:} {lib:} {timestamp:} {hex:}",
25
height = header.height,
26
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,
31
hex = hex::encode(bytes),
32
);
33
}
0 commit comments