Repository navigation
Conversation
Move the call-depth limit check from frame creation into the CREATE opcode's pre-access checks. A too-deep CREATE now pushes 0 without reading the destination account, keeping it out of the EIP-7928 block access list and the warm set. - Add depth to InputsTr/InputsImpl so the opcode can see the frame depth - Enable EIP-8037 in DummyHost when spec is Amsterdam - Add test covering the too-deep CREATE path
Merging this PR will not alter performance
Comparing Footnotes
|
Member
Author
|
This is not reachable by 16M max gas limit, but either way it does not hurt to have it. |
Member
Author
|
Not possible to trigger with 16M gas limit, but the check should be there |
6 tasks done
RealiCZ
added a commit
to megaeth-labs/revm
that referenced
this pull request
Sep 16, 2026
…pre-access checks (EIP-8037) (bluealloy#3829)
30 tasks done
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.
Summary
Moves the call-depth limit check from frame creation into the CREATE opcode's pre-access checks. Under EIP-8037, a too-deep CREATE now pushes 0 without reading the destination account, keeping the derived address out of the EIP-7928 block access list and the warm set.
depthtoInputsTr/InputsImpland thread it through frame creation so the opcode can see the current call depthDummyHostnow reports EIP-8037 as enabled when constructed with an Amsterdam specTesting
cargo nextest run -p revm-interpreter create_too_deepcargo clippy --workspace --all-targets --all-featurescargo fmt --all --check