Skip to content

Commit

Permalink
fix(escalator): add known retryable error (#32)
Browse files Browse the repository at this point in the history
There was a gas spike on Sei overnight in which the escalator wasn't
effective at all, because the error message (`insufficient fee`) is
non-standard and txs were just dropped. This meant submissions were
stuck until the gas price estimation RPC returned accurate enough
values.

Logs here: https://cloudlogging.app.goo.gl/wCsz7oEuFL6RdaAY7
  • Loading branch information
daniel-savu authored Feb 3, 2025
1 parent 3ce1ce7 commit a6cd47a
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions ethers-middleware/src/gas_escalator/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -270,8 +270,13 @@ pub struct EscalationTask<M, E> {
txs: ToEscalate,
}

const RETRYABLE_ERRORS: [&str; 3] =
["replacement transaction underpriced", "already known", "Fair pubdata price too high"];
const RETRYABLE_ERRORS: [&str; 4] = [
"replacement transaction underpriced",
"already known",
"Fair pubdata price too high",
// seen on Sei
"insufficient fee",
];

#[cfg(not(target_arch = "wasm32"))]
impl<M, E: Clone> EscalationTask<M, E> {
Expand Down

0 comments on commit a6cd47a

Please sign in to comment.