mirror of
https://github.com/paradigmxyz/reth.git
synced 2026-02-04 12:05:12 -05:00
perf: perform contains check without alloc (#16136)
This commit is contained in:
@@ -812,10 +812,7 @@ impl<T: TransactionOrdering> TxPool<T> {
|
||||
|
||||
if let Some(authority_list) = &transaction.authority_ids {
|
||||
for sender_id in authority_list {
|
||||
if !self.pending_pool.get_txs_by_sender(*sender_id).is_empty() ||
|
||||
!self.queued_pool.get_txs_by_sender(*sender_id).is_empty() ||
|
||||
!self.basefee_pool.get_txs_by_sender(*sender_id).is_empty()
|
||||
{
|
||||
if self.all_transactions.txs_iter(*sender_id).next().is_some() {
|
||||
return Err(PoolError::new(
|
||||
*transaction.hash(),
|
||||
PoolErrorKind::InvalidTransaction(InvalidPoolTransactionError::Eip7702(
|
||||
|
||||
Reference in New Issue
Block a user