Skip to content

Commit

Permalink
fix comments
Browse files Browse the repository at this point in the history
  • Loading branch information
Lilyjjo committed Sep 24, 2024
1 parent 974c126 commit 0a4f435
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions crates/astria-sequencer/src/service/mempool/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,6 @@ async fn check_tracked(
) -> Option<response::CheckTx> {
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());
}
Expand All @@ -195,7 +194,8 @@ async fn check_removed_comet_bft(
) -> Option<response::CheckTx> {
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 => {
Expand Down Expand Up @@ -357,6 +357,7 @@ async fn insert_into_mempool<S: accounts::StateReadExt + address::StateReadExt +
) -> Option<response::CheckTx> {
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
Expand Down

0 comments on commit 0a4f435

Please sign in to comment.