From 4648f46f5134102470715fb078e94caa5022c431 Mon Sep 17 00:00:00 2001 From: Sergio Chouhy Date: Fri, 24 Oct 2025 22:18:41 -0300 Subject: [PATCH] minor changes --- integration_tests/src/lib.rs | 1 + sequencer_core/src/lib.rs | 11 ++++++++++- 2 files changed, 11 insertions(+), 1 deletion(-) diff --git a/integration_tests/src/lib.rs b/integration_tests/src/lib.rs index e6e82d0..e455bd3 100644 --- a/integration_tests/src/lib.rs +++ b/integration_tests/src/lib.rs @@ -1842,6 +1842,7 @@ pub async fn main_tests_runner() -> Result<()> { home_dir, test_success_private_transfer_to_another_owned_account_cont_run_path ); + tps_test().await; } "all_private" => { test_cleanup_wrap!( diff --git a/sequencer_core/src/lib.rs b/sequencer_core/src/lib.rs index 0c83f33..644f99e 100644 --- a/sequencer_core/src/lib.rs +++ b/sequencer_core/src/lib.rs @@ -1,4 +1,4 @@ -use std::fmt::Display; +use std::{fmt::Display, time::Instant}; use anyhow::Result; use common::{ @@ -146,6 +146,7 @@ impl SequencerCore { ///Produces new block from transactions in mempool pub fn produce_new_block_with_mempool_transactions(&mut self) -> Result { + let now = Instant::now(); let new_block_height = self.chain_height + 1; let mut num_valid_transactions_in_block = 0; @@ -175,6 +176,8 @@ impl SequencerCore { let curr_time = chrono::Utc::now().timestamp_millis() as u64; + let num_txs_in_block = valid_transactions.len(); + let hashable_data = HashableBlockData { block_id: new_block_height, transactions: valid_transactions, @@ -188,6 +191,12 @@ impl SequencerCore { self.chain_height = new_block_height; + log::info!( + "Created block with {} transactions in {} seconds", + num_txs_in_block, + now.elapsed().as_secs() + ); + Ok(self.chain_height) } }