fix(rpc): mark block simulations in tx envs - #7228
Merged
Merged
Conversation
Contributor
|
Member
Author
|
cyclops audit fast |
tempoxyz-bot
left a comment
Contributor
There was a problem hiding this comment.
👁️ Cyclops Review
This change correctly identifies Reth block simulations, but using one global transaction identifier makes replay-sensitive simulation results diverge from execution. One verified low-severity correctness issue is annotated inline.
Reviewer Callouts
- ⚡ Simulation detection contract:
encoded.is_empty()is an upstream implementation detail rather than an explicit simulation flag. Consider explicit plumbing or an upstream-pinned invariant test before other empty-encoded execution paths can acquire simulation semantics. - ⚡ Conversion consistency:
FromTxWithEncoded<AASigned>still ignores encoded bytes while the envelope implementation treats emptiness as simulation. This is unreachable today but should be checked before adding bareAASignedwrappers.
Member
Author
|
cyclops audit fast |
joshieDo
marked this pull request as ready for review
August 19, 2026 12:05
joshieDo
requested review from
0xKitsune,
klkvr,
mattsse and
rakita
as code owners
August 19, 2026 12:05
tempoxyz-bot
left a comment
Contributor
There was a problem hiding this comment.
👁️ Cyclops Review
This change correctly identifies Reth block simulations, but one verified Legacy-transaction compatibility issue remains on the current head.
Reviewer Callouts
- ⚡ Simulation classification contract:
encoded.is_empty()is an upstream Reth convention rather than a locally enforced property. Future security-sensitive consumers should use an explicit trusted execution-path signal rather than treating this heuristic as authorization to skip validation.
klkvr
approved these changes
Aug 19, 2026
This was referenced Aug 16, 2026
This was referenced Aug 19, 2026
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.
Marks Reth
eth_simulateV1transactions as simulations when theirWithEncodedwrapper carries the empty envelope used by the block-simulation pipeline. Applies the same rule to envelope and bare AA conversions while preserving each transaction’s replay and channel identity.Extracted while reviewing #4069.