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 Aug 28, 2024
1 parent 036f38f commit 3cd3537
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 3cd3537

Please sign in to comment.