feat(exec): skip recoverable invalid transactions#393
Open
AshinGau wants to merge 1 commit into
Open
Conversation
AshinGau
force-pushed
the
feat/skipped-transaction-receipts
branch
from
July 16, 2026 07:33
e0295ce to
210cd06
Compare
AshinGau
force-pushed
the
feat/skipped-transaction-receipts
branch
from
July 16, 2026 07:34
210cd06 to
380548d
Compare
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Background
follow Galxe/grevm#111, resolve https://github.com/Galxe/gravity-audit/issues/838
Gravity uses pipeline execution: consensus may build the next block before the previous block has been committed by the execution layer. A transaction that passed the consensus-side filter can therefore become invalid against the final execution state—for example, an EIP-7702 delegated call may change another account's nonce before that account's transaction is executed.
Previously, recoverable errors such as nonce mismatch or insufficient balance were returned as block-level execution errors. This could stop block execution and leave the validator without a safe way to handle a transaction that consensus had already included.
Design
This PR adds a last-resort execution-layer safeguard for recoverable invalid transactions:
TxExecutionOutcome::Skipped(reason).GravityTxSkipped(uint16,uint16)log.disable_grevmpath uses the same grevm sequential executor, keeping skipped-transaction semantics identical across both execution modes.Skipped transactions remain persisted and queryable through Ethereum RPC by transaction hash and receipt. Execution continues with subsequent transactions in the block.
Validation
disable_grevmmodes.