Skip to content

Fix genesis state in Gloas - #5172

Merged
jtraglia merged 3 commits into
ethereum:masterfrom
jtraglia:genesis-fix
Apr 27, 2026
Merged

Fix genesis state in Gloas#5172
jtraglia merged 3 commits into
ethereum:masterfrom
jtraglia:genesis-fix

Conversation

@jtraglia

Copy link
Copy Markdown
Member

Make the suggested change from #5168:

state.latest_block_hash = blockhash
state.latest_execution_payload_bid.block_hash = 0x00
state.latest_execution_payload_bid.parent_block_hash = blockhash

@github-actions github-actions Bot added testing CI, actions, tests, testing infra gloas labels Apr 27, 2026
# Chain onto the previous bid so both block_1 and block_2 see a FULL parent
bid.parent_block_hash = state.latest_execution_payload_bid.block_hash
bid.block_hash = state.latest_execution_payload_bid.block_hash
# TODO(jtraglia): make this less hacky

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.

is this a thing we're fixing now? or are we merging this todo?

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.

I intend to merge this todo & deal with it later. The fix wouldn't be simple.

@nflaig nflaig left a comment

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.

Looks good to me, I haven't verified if that allows to revert all hacks we added in lodestar for it, but it should

bid.block_hash = state.latest_execution_payload_bid.block_hash
# TODO(jtraglia): make this less hacky
bid.parent_block_hash = state.latest_block_hash
bid.block_hash = state.latest_block_hash

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 don't understand how this can ever happen

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.

Yeah I hate this. This is unrealistic but that's how the test worked before. This test format does not yet support payload sidecars. See: https://github.com/ethereum/consensus-specs/blob/master/tests/formats/sanity/blocks.md

@nflaig

nflaig commented Apr 27, 2026

Copy link
Copy Markdown
Member

I haven't verified if that allows to revert all hacks we added in lodestar for it, but it should

confirmed we are passing spec tests based on the changes in this PR without any genesis block checks

@jtraglia
jtraglia merged commit e9f599e into ethereum:master Apr 27, 2026
15 checks passed
jtraglia added a commit to jtraglia/consensus-specs that referenced this pull request Apr 28, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

gloas testing CI, actions, tests, testing infra

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants