forked from informalsystems/hermes
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Retry send_tx on account sequence mismatch (informalsystems#1349)
* Retry send_tx on account sequence mismatch * Move MAX_ACCOUNT_SEQUENCE_RETRY to retry_strategy module * Introduce INCORRECT_ACCOUNT_SEQUENCE_ERR constant for error code 32 * Inline constant matching * Retry on simulation failure * Refactored retry to catch both estimate and bcast errors * Fixed off-by-one error in re-fetching logic * Basic backoff mechanism * More idiomatic account seq. incremental * Adapted to catch acct.seq more generally * retry counter logging * Bumped the multipler from 100 to 200 * Non-retrying fix upon gas estimation failure * Adjusted retry params; added ref. to informalsystems#1153. * changelog Co-authored-by: Adi Seredinschi <[email protected]>
- Loading branch information
1 parent
e2c4892
commit 205489c
Showing
3 changed files
with
166 additions
and
45 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
- Added a recovery mechanism to automatically retry or drop tx upon account | ||
sequence mismatch errors ([#1264](https://github.com/informalsystems/ibc- | ||
rs/issues/1264)) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters