From f170b7f743032cf9354803dd5f99045a7344a01c Mon Sep 17 00:00:00 2001 From: Mario Rugiero Date: Wed, 29 Oct 2025 18:59:32 -0300 Subject: [PATCH] fix(l1,l2): inaccurate block execution metrics --- crates/blockchain/blockchain.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/crates/blockchain/blockchain.rs b/crates/blockchain/blockchain.rs index 0f8da032226..9b90ff44a94 100644 --- a/crates/blockchain/blockchain.rs +++ b/crates/blockchain/blockchain.rs @@ -579,8 +579,8 @@ impl Blockchain { METRICS_BLOCKS.set_latest_block_gas_limit(gas_limit as f64); METRICS_BLOCKS.set_latest_gigagas(throughput); METRICS_BLOCKS.set_execution_ms(executed.duration_since(since).as_millis() as i64); - METRICS_BLOCKS.set_store_ms(stored.duration_since(since).as_millis() as i64); - METRICS_BLOCKS.set_merkle_ms(merkleized.duration_since(since).as_millis() as i64); + METRICS_BLOCKS.set_merkle_ms(merkleized.duration_since(executed).as_millis() as i64); + METRICS_BLOCKS.set_store_ms(stored.duration_since(merkleized).as_millis() as i64); METRICS_BLOCKS.set_transaction_count(transactions_count as i64); );