Repository navigation
fix: reconcile sibling state gas refills - #3893
Merged
Merged
Conversation
Merging this PR will not alter performance
Comparing Footnotes
|
DaniPopes
pushed a commit
to alloy-rs/evm2
that referenced
this pull request
Sep 7, 2026
Ports [bluealloy/revm#3893](bluealloy/revm#3893) to evm2. When one child creates storage using execution gas and a sibling clears it, the returned reservoir now restores the parent's spilled execution gas before retaining any excess. Reconciliation happens after merging the successful child's counters and does not double-adjust signed state-gas spend. Adds the upstream partial/excess reservoir and sibling-frame regressions, plus a full transaction test comparing the parent's returned `GAS` value with EIP-8037 enabled and disabled. Both sibling regressions were confirmed to fail with the old merge behavior and pass with the fix. Also includes the fixture bump from [#414](#414): the downloader default, CI override, and documented EF/EEST fixture version now use `[email protected]`. Validation: - `cargo test -p evm2 --lib`: 490 passed. - `cargo test -p evm2 --lib --no-default-features --features std,parse`: 490 passed. - `cargo +nightly clippy -p evm2 --all-targets --all-features`: passed. - `cargo +nightly fmt --all --check`: passed. - Fixture bump: verified the v8.1.4 release asset, executed the downloader's fixture-plan construction, checked its generated URL, and ran `git diff --check`. The full EEST suite was not run locally. Prompted by: @rakita --------- Co-authored-by: rakita <[email protected]>
This was referenced Sep 17, 2026
chore: cherry-pick upstream d23bb3a4 — fix: reconcile sibling state gas refills
megaeth-labs/revm#53
Merged
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
Tests