EspressoSystems / cape

Configurable Asset Privacy for Ethereum
https://cape.docs.espressosys.com/
GNU General Public License v3.0
93 stars 16 forks source link

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

Closed sveitser closed 2 years ago

sveitser commented 2 years ago

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 commented 2 years ago

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

sveitser commented 2 years ago

Fix for build in #1205