Skip to content

Commit

Permalink
feat(mempool): add remove func to suspended tx pool (#784)
Browse files Browse the repository at this point in the history
  • Loading branch information
ayeletstarkware authored Sep 17, 2024
1 parent 74f6d11 commit 1233182
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions crates/mempool/src/suspended_transaction_pool.rs
Original file line number Diff line number Diff line change
Expand Up @@ -23,4 +23,8 @@ impl _SuspendedTransactionPool {
"Keys should be unique; duplicates are checked prior."
);
}

pub fn _remove(&mut self, tx: &TransactionReference) -> bool {
self.suspended_tx_pool.remove(&(tx.sender_address, tx.nonce)).is_some()
}
}

0 comments on commit 1233182

Please sign in to comment.