Skip to content

Commit

Permalink
wip: debug
Browse files Browse the repository at this point in the history
  • Loading branch information
0xB10C committed Mar 22, 2024
1 parent d85c1e5 commit a6e0a77
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions tools/metrics/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,7 @@ fn main() {
fn handle_validation_event(e: &validation_event::Event) {
match e {
validation_event::Event::BlockConnected(v) => {
println!("Validation: {}", v);
metrics::VALIDATION_BLOCK_CONNECTED_LATEST_HEIGHT.set(v.height as i64);
metrics::VALIDATION_BLOCK_CONNECTED_LATEST_TIME.set(v.connection_time);
metrics::VALIDATION_BLOCK_CONNECTED_DURATION.inc_by(v.connection_time as u64);
Expand Down

0 comments on commit a6e0a77

Please sign in to comment.