Skip to content

Enable generating Amsterdam blocks in hivechain#1468

Open
mirgee wants to merge 1 commit into
ethereum:masterfrom
mirgee:enable-amsterdam-blocks
Open

Enable generating Amsterdam blocks in hivechain#1468
mirgee wants to merge 1 commit into
ethereum:masterfrom
mirgee:enable-amsterdam-blocks

Conversation

@mirgee

@mirgee mirgee commented May 7, 2026

Copy link
Copy Markdown
Contributor

Adds support for generating Amsterdam blocks in hivechain.

Chain generated by geth's bal-devnet-6 branch was successfully imported by both geth and besu.

Uses ethereum/go-ethereum#34897 bal-devnet-6 branch for geth dependency.

jwasinger pushed a commit to ethereum/go-ethereum that referenced this pull request 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>
Signed-off-by: Miroslav Kovář <miroslavkovar@protonmail.com>
@mirgee mirgee force-pushed the enable-amsterdam-blocks branch from b696c2a to a059a6c Compare May 8, 2026 06:55
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.

1 participant