Skip to content

fix(relayer): attribute an offramp abort to the offramp only by location and code - #614

Merged
JohnChangUK merged 1 commit into
developfrom
fix/offramp-revert-classification
Nov 20, 2026
Merged

JohnChangUK merged 1 commit into
developfrom
fix/offramp-revert-classification

Conversation

@JohnChangUK

@JohnChangUK JohnChangUK commented Nov 20, 2026 •

Copy link
Copy Markdown
Contributor

Description

Seven codes asserted before the receiver runs are skipped, reasons from the module bindings: E_UNKNOWN_SOURCE_CHAIN_SELECTOR, E_TOKEN_DATA_MISMATCH, E_ROOT_NOT_COMMITTED, E_SOURCE_CHAIN_NOT_ENABLED, E_UNSUPPORTED_TOKEN, E_FUNGIBLE_ASSET_TYPE_MISMATCH, E_FUNGIBLE_ASSET_AMOUNT_MISMATCH. The last three fire in release_or_mint before dispatch.

  • Other aborts there are reachable by a receiver re-entering the module and now record a failure instead of retrying forever.
  • E_DEST_CHAIN_SELECTOR_MISMATCH and E_MUST_BE_OUT_OF_ORDER_EXEC stay failures on purpose; a retry fails again on both.

@JohnChangUK
JohnChangUK force-pushed the fix/offramp-revert-classification branch 4 times, most recently from 8988f9a to 4c028e3 Compare November 20, 2026 04:17
…ion and code

The tx poller classified a failed execute as reverted-before-the-receiver
whenever its VmStatus text contained the offramp's rendered address::module
string. A substring match accepts that string anywhere in an abort's text,
and a text comparison of the address misses a node that renders it
zero-padded, so a receiver-side failure could be skipped and a genuine
pre-dispatch revert recorded as a permanent failure.

The status is now parsed: the aborting address is taken from the status's
own location and compared by bytes, and the abort code from the hex, which
a node renders bare when the module publishes no error map, as the offramp
does, and wrapped in a name when it does. Only the seven codes execute
asserts before the receiver runs are skipped, taken from the module
bindings: E_UNKNOWN_SOURCE_CHAIN_SELECTOR, E_TOKEN_DATA_MISMATCH,
E_ROOT_NOT_COMMITTED, E_SOURCE_CHAIN_NOT_ENABLED, E_UNSUPPORTED_TOKEN,
E_FUNGIBLE_ASSET_TYPE_MISMATCH and E_FUNGIBLE_ASSET_AMOUNT_MISMATCH. The
last three are asserted in release_or_mint before dispatch, so a receiver
cannot raise them. Every other abort at that address is reachable by a
receiver re-entering the module, via calculate_message_hash with mismatched
vector lengths or a state-touching call tripping the reentrancy guard, and
is now recorded as a receiver-side failure rather than retried forever.
@JohnChangUK
JohnChangUK merged commit 8318489 into develop Nov 20, 2026
25 of 28 checks passed
@JohnChangUK
JohnChangUK deleted the fix/offramp-revert-classification branch November 20, 2026 15:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants