Skip to content

Commit

Permalink
update block logging to support new firehose block
Browse files Browse the repository at this point in the history
  • Loading branch information
colindickson committed Sep 3, 2024
1 parent a33b27c commit b7e0e54
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/firehose.rs
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,13 @@ fn record_block(block: &codec::Block) {
let header = block.header.as_ref().unwrap();

println!(
"FIRE BLOCK {height:} {hash:} {hex:}",
"FIRE BLOCK {height:} {hash:} {parent_height:} {parent_hash:} {lib:} {timestamp:} {hex:}",
height = header.height,
hash = header.hash.as_ref().unwrap(),
parent_height = header.prev_height,
parent_hash = header.prev_hash.as_ref().unwrap(),
lib = header.last_final_block.as_ref().unwrap(),
timestamp = header.timestamp,
hex = hex::encode(bytes),
);
}

0 comments on commit b7e0e54

Please sign in to comment.