Skip to content

feat: core.SetBeaconBlockRoot() direct state setting#289

Open
ARR4N wants to merge 6 commits into
mainfrom
arr4n/direct-set-beaconblockroot
Open

feat: core.SetBeaconBlockRoot() direct state setting#289
ARR4N wants to merge 6 commits into
mainfrom
arr4n/direct-set-beaconblockroot

Conversation

@ARR4N

@ARR4N ARR4N commented Jun 25, 2026

Copy link
Copy Markdown
Collaborator

Why this should be merged

Simplify setting of the beacon block root in the EIP-4788 history contract without having to construct a vm.EVM.

How this works

Directly sets storage slots, as allowed by the EIP. The caveat in the EIP is not relevant to us because we are concerned with the canonical contract.

How this was tested

Integration test setting the root via the new function and getting via a contract call. Also exercises the upstream core.ProcessBeaconBlockRoot() gold standard as a test of the test.

Comment thread core/state_processor.libevm.go
@ARR4N ARR4N marked this pull request as draft June 25, 2026 17:20
@ARR4N ARR4N marked this pull request as ready for review June 25, 2026 17:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants