Skip to content

Various spec fixes for EIP-7251#3657

Merged
ralexstokes merged 5 commits into
ethereum:devfrom
ralexstokes:eip-7251-spec-fixes
Apr 8, 2024
Merged

Various spec fixes for EIP-7251#3657
ralexstokes merged 5 commits into
ethereum:devfrom
ralexstokes:eip-7251-spec-fixes

Conversation

@ralexstokes
Copy link
Copy Markdown
Member

@ralexstokes ralexstokes commented Apr 6, 2024

Spec fixes found while working on #3656.

Will merge here, and rebase that to just have test fixes.

@ralexstokes ralexstokes force-pushed the eip-7251-spec-fixes branch 2 times, most recently from f0eb3b9 to 36b0c50 Compare April 6, 2024 23:17
@ralexstokes ralexstokes force-pushed the eip-7251-spec-fixes branch from 36b0c50 to 8cf2fd5 Compare April 6, 2024 23:18
@ralexstokes ralexstokes requested review from dapplion and mkalinin April 6, 2024 23:37
@ralexstokes ralexstokes mentioned this pull request Apr 6, 2024
@ralexstokes ralexstokes requested a review from hwwhww April 8, 2024 00:43
Copy link
Copy Markdown
Contributor

@hwwhww hwwhww left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I guess the bugs were primarily caused by that the previous pre-fork was Bellatrix.

This fix looks good to me! (though, we need #3656 to verify it 😄)

@ralexstokes ralexstokes merged commit dd2721f into ethereum:dev Apr 8, 2024
@ralexstokes ralexstokes deleted the eip-7251-spec-fixes branch April 8, 2024 14:09
# If empty, will initialize a chain that has not yet gone through the Merge transition
state.latest_execution_payload_header = execution_payload_header

return state
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@hwwhww are we still merging these? state bumps can be computed from the upgrade_to_* function

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

they do serve distinct purposes

for testing, we will usually start at genesis, whereas at the fork boundary there is likely state we want to bring forward/translate from the old fork to the new

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think @dapplion was pointing to an old discussion. I just opened an issue: #3663 (a good first issue!)

It's better to clean up them in other PRs altogether. 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants