Skip to content

core: record SetParentBeaconRoot beacon-root accesses in BAL#34897

Merged
jwasinger merged 1 commit into
ethereum:bal-devnet-6from
mirgee:bal-devnet-6-fix-beacon-block-root-processing
May 7, 2026
Merged

core: record SetParentBeaconRoot beacon-root accesses in BAL#34897
jwasinger merged 1 commit into
ethereum:bal-devnet-6from
mirgee:bal-devnet-6-fix-beacon-block-root-processing

Conversation

@mirgee
Copy link
Copy Markdown

@mirgee mirgee commented May 7, 2026

SetParentBeaconRoot, which is used by hivechain block customization (modifyBlock passed to GenerateChain as gen), runs ProcessBeaconBlockRoot, but those accesses are not being recorded in BALs. Later, GenerateChain processes beacon root again with BAL tracking, so BAL could miss earlier mutations.

This patch keeps current flow but records reads/writes from SetParentBeaconRoot into the BAL when enabled. That fixes accounting mismatch without changing execution order.

I tried to find a better solution which would avoid double beacon root processing but kept running into PMT root mismatches. This is the minimal working solution, and a temporary workaround to enable correct Amsterdam block generation anyway. Long-term we should move to a single canonical beacon-root processing path (or explicit idempotent handling) so execution and BAL accounting happen exactly once.

Used by ethereum/hive#1468 to enable Amsterdam block generation in hivechain.

Signed-off-by: Miroslav Kovář <miroslavkovar@protonmail.com>
@jwasinger jwasinger merged commit 73944e3 into ethereum:bal-devnet-6 May 7, 2026
1 check passed
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