From b839d3cc50aefe52f8a86438cfd47d165e279fa1 Mon Sep 17 00:00:00 2001 From: Thomas Nguy Date: Sat, 1 Feb 2025 00:26:17 +0900 Subject: [PATCH] remove unecessary change in mempool --- core/node/state_keeper/src/io/mempool.rs | 12 ++---------- 1 file changed, 2 insertions(+), 10 deletions(-) diff --git a/core/node/state_keeper/src/io/mempool.rs b/core/node/state_keeper/src/io/mempool.rs index 83494c1a09d3..f553fcb57a08 100644 --- a/core/node/state_keeper/src/io/mempool.rs +++ b/core/node/state_keeper/src/io/mempool.rs @@ -283,19 +283,11 @@ impl StateKeeperIO for MempoolIO { return Ok(None); }; - let params = L2BlockParams { + Ok(Some(L2BlockParams { timestamp, // This value is effectively ignored by the protocol. virtual_blocks: 1, - }; - Ok(Some(params)) - } - - fn update_next_l2_block_timestamp(&mut self, block_timestamp: &mut u64) { - let current_timestamp_millis = millis_since_epoch(); - let current_timestamp = (current_timestamp_millis / 1_000) as u64; - - *block_timestamp = current_timestamp; + })) } async fn wait_for_next_tx(