Skip to content

Commit

Permalink
remove unecessary change in mempool
Browse files Browse the repository at this point in the history
  • Loading branch information
thomas-nguy committed Jan 31, 2025
1 parent c0b85d6 commit b839d3c
Showing 1 changed file with 2 additions and 10 deletions.
12 changes: 2 additions & 10 deletions core/node/state_keeper/src/io/mempool.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down

0 comments on commit b839d3c

Please sign in to comment.