Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion crates/transaction-pool/src/pool/txpool.rs
Original file line number Diff line number Diff line change
Expand Up @@ -791,7 +791,11 @@ impl<T: TransactionOrdering> TxPool<T> {

if txs_by_sender.peek().is_none() {
// Transaction with gapped nonce is not supported for delegated accounts
if transaction.nonce() > on_chain_nonce {
// but transaction can arrive out of order if more slots are allowed
// by default with a slot limit of 1 this will fail if the transaction's nonce >
// on_chain
let nonce_gap_distance = transaction.nonce().saturating_sub(on_chain_nonce);
if nonce_gap_distance >= self.config.max_inflight_delegated_slot_limit as u64 {
return Err(PoolError::new(
*transaction.hash(),
PoolErrorKind::InvalidTransaction(InvalidPoolTransactionError::Eip7702(
Expand Down