From 729d8cb8936fc1cfe0ee183f1bf7ed1ca1312735 Mon Sep 17 00:00:00 2001 From: Fedor Sakharov Date: Fri, 20 Oct 2023 11:37:21 +0200 Subject: [PATCH] fix: correctly track last executed and seen blocks in metrics (#245) --- watcher/src/lib.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/watcher/src/lib.rs b/watcher/src/lib.rs index a711a0f3..262f0867 100644 --- a/watcher/src/lib.rs +++ b/watcher/src/lib.rs @@ -308,7 +308,7 @@ async fn process_withdrawals_in_block( for (_tx_hash, group) in group_by.into_iter() { for (index, event) in group.into_iter().enumerate() { WATCHER_METRICS - .l2_last_executed_block + .l2_last_seen_block .set(event.block_number as i64); tracing::info!("withdrawal {event:?} index in transaction is {index}");