Skip to content
This repository has been archived by the owner on Jan 15, 2024. It is now read-only.

relayer: retry after "nonce too low" errors #1204

Merged
merged 3 commits into from
Jul 27, 2022
Merged

Conversation

sveitser
Copy link
Contributor

We occasionally get a "nonce too low" error. I'm not 100% sure why this happens but it's possible that a transaction was submitted a bit earlier and got mined quickly enough for the subsequent transaction to have a nonce that is in fact too low. It could also be that we are sometimes getting an outdated response on the transaction count query that ethers is using to determine the nonce.

In any event, I think it makes sense to retry.

Example error log on datadog link.

@sveitser
Copy link
Contributor Author

Build errors seem unrelated to this PR. Maybe ubuntu servers are having issues? Will retry later.

@sveitser
Copy link
Contributor Author

Fix for build in #1205

Copy link
Collaborator

@philippecamacho philippecamacho left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@sveitser sveitser enabled auto-merge (squash) July 27, 2022 15:08
@sveitser sveitser merged commit b2f27da into main Jul 27, 2022
@sveitser sveitser deleted the retry-nonce-too-low branch July 27, 2022 15:34
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants