From 0a4f435f9005b045349ea4bb29dece55b4fc3ffa Mon Sep 17 00:00:00 2001 From: lilyjjo Date: Tue, 24 Sep 2024 15:08:27 -0400 Subject: [PATCH] fix comments --- crates/astria-sequencer/src/service/mempool/mod.rs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/crates/astria-sequencer/src/service/mempool/mod.rs b/crates/astria-sequencer/src/service/mempool/mod.rs index c8dc9247bc..a6149085b3 100644 --- a/crates/astria-sequencer/src/service/mempool/mod.rs +++ b/crates/astria-sequencer/src/service/mempool/mod.rs @@ -171,7 +171,6 @@ async fn check_tracked( ) -> Option { let start_tracked_check = Instant::now(); - // check if the transaction is in the mempool already, return early if it is if mempool.tracked(tx_hash).await { return Some(response::CheckTx::default()); } @@ -195,7 +194,8 @@ async fn check_removed_comet_bft( ) -> Option { let start_removal_check = Instant::now(); - // check if the transaction has been removed from the appside mempool + // check if the transaction has been removed from the appside mempool and handle + // the removal reason if let Some(removal_reason) = mempool.check_removed_comet_bft(tx_hash).await { match removal_reason { RemovalReason::Expired => { @@ -357,6 +357,7 @@ async fn insert_into_mempool Option { let start_convert_address = Instant::now(); + // generate address for the signed transaction let address = match state .try_base_prefixed(&signed_tx.verification_key().address_bytes()) .await