You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hermes fetches the acct s.n. from a full node, namely 189
Sends tx with s.n. 189
Hermes encounters an "out of gas" error
Increments the account sequence to 190 -- which it should not do! the tx never entered the mempool as broadcast_tx_sync failed, so the s.n. remained unchanged
Hermes then sends a subsequent tx using the wrong s.n. 190
Crate
Summary of Bug
When Hermes encounters an error submitting a transaction, it mistakenly increments the (cached) account sequence number.
See the trace below, provided from Gravity DeX ops:
Steps in the trace above
189
189
190
-- which it should not do! the tx never entered the mempool asbroadcast_tx_sync
failed, so the s.n. remained unchanged190
The problematic logic is here
https://github.com/informalsystems/ibc-rs/blob/7bcd7f1da606569681d961016800728815149d3a/relayer/src/chain/cosmos.rs#L277-L281
Version
0.7.2
Acceptance Criteria
incr_account_sequence
if the call tobroadcast_tx_sync
is an error codeFor Admin Use
The text was updated successfully, but these errors were encountered: