Skip to content

Commit

Permalink
fix(escalator): add known retryable error
Browse files Browse the repository at this point in the history
  • Loading branch information
daniel-savu committed Feb 3, 2025
1 parent 3ce1ce7 commit 3ceb298
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 3ceb298

Please sign in to comment.