Add EIP-8037 spill-refund accounting coverage#3158
Open
Marchhill wants to merge 1 commit into
Open
Conversation
Cover cross-frame restoration-refund advances (discharge, top-level revert, revocation by a middle-frame revert), reverted-grandchild spill through a halted child, same-frame NEW_ACCOUNT charge-and-refund on a soft-failed value call under a later halt, partially discharged advances revoked by an exceptional halt, and the regular/state split of burned spill versus intrinsic authorization state gas on a top-level halt. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Marchhill
marked this pull request as ready for review
July 13, 2026 18:41
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.
Adds
tests/amsterdam/eip8037_state_creation_gas_cost_increase/test_state_gas_spill_refund.py— coverage for EIP-8037 spill-refund accounting shapes that the existing suite does not pin. Cross-client testing of Nethermind's EIP-8037 implementation against EELS surfaced several consensus-relevant divergences (sender over/undercharged,header.gasUsedshifted) that the fulltests-glamsterdam-devnet@v6.1.1fixture suite did not catch — see NethermindEth/nethermind#12369 and NethermindEth/nethermind#12419 (the latter's description lists the divergences).Scenarios
All run with the tx gas limit well below the EIP-7825 cap, so the reservoir is empty and every state charge spills from
gas_left:NEW_ACCOUNTcharge-and-refund on a soft-failed value CALL, after importing a reverted child, inside a frame with its own spilled set that later halts.gasUsed.