Skip to content

Commit 3b28b15

Browse files
authored
nonce unstuck fix (#27)
1 parent 920c3a0 commit 3b28b15

File tree

1 file changed

+11
-4
lines changed

1 file changed

+11
-4
lines changed

executors/src/eoa/worker/confirm.rs

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -341,7 +341,7 @@ impl<C: Chain> EoaExecutorWorker<C> {
341341
nonce = expected_nonce,
342342
"Successfully sent gas bumped transaction"
343343
);
344-
return Ok(true);
344+
Ok(true)
345345
}
346346
Err(e) => {
347347
tracing::warn!(
@@ -351,11 +351,18 @@ impl<C: Chain> EoaExecutorWorker<C> {
351351
"Failed to send gas bumped transaction"
352352
);
353353
// Don't fail the worker, just log the error
354-
return Ok(false);
354+
Ok(false)
355355
}
356356
}
357-
}
357+
} else {
358+
tracing::debug!(
359+
nonce = expected_nonce,
360+
"Successfully retrieved all transactions for this nonce, but failed to find newest transaction for gas bump, sending noop"
361+
);
358362

359-
Ok(false)
363+
let noop_tx = self.send_noop_transaction(expected_nonce).await?;
364+
self.store.process_noop_transactions(&[noop_tx]).await?;
365+
Ok(true)
366+
}
360367
}
361368
}

0 commit comments

Comments
 (0)