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

Commit

Permalink
relayer: retry after "nonce too low" errors (#1204)
Browse files Browse the repository at this point in the history
* relayer: retry after "nonce too low" errors

* Update ubuntu: impish -> jammy

There are no more updates for impish as of July 14th.

https://fridge.ubuntu.com/2022/07/19/ubuntu-21-10-impish-indri-end-of-life-reached-on-july-14-2022/
  • Loading branch information
sveitser authored Jul 27, 2022
1 parent ddf9c58 commit b2f27da
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion relayer/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -238,7 +238,8 @@ async fn submit_block(web_state: &WebState, block: BlockWithMemos) -> Result<H25
.await
.map_err(|err| {
let msg = err.to_string();
if msg.contains("replacement transaction underpriced") {
if msg.contains("replacement transaction underpriced") || msg.contains("nonce too low")
{
Error::Nonce { msg }
} else if msg.contains("Root not found") {
Error::RootNotFound { msg }
Expand Down

0 comments on commit b2f27da

Please sign in to comment.