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
13 changes: 13 additions & 0 deletions executors/src/eoa/worker/confirm.rs
Original file line number Diff line number Diff line change
Expand Up @@ -376,6 +376,19 @@ impl<C: Chain> EoaExecutorWorker<C> {
"Found newest transaction for gas bump"
);

let time_since_queuing = EoaExecutorStore::now().saturating_sub(newest_transaction_data.created_at);

if time_since_queuing < NONCE_STALL_LIMIT_MS {
tracing::warn!(
transaction_id = ?newest_transaction_data.transaction_id,
nonce = expected_nonce,
time_since_queuing = time_since_queuing,
stall_timeout = NONCE_STALL_LIMIT_MS,
"Transaction has not been queued for long enough, skipping gas bump"
);
return Ok(false);
}

// Get the latest attempt to extract gas values from
// Build typed transaction -> manually bump -> sign
let typed_tx = match self
Expand Down