Skip to content

Use the genesis root as a dependent root for the first two epochs - #5515

Merged
jihoonsong merged 2 commits into
ethereum:masterfrom
jihoonsong:get-shuffling-dependent-root-genesis
Aug 5, 2026
Merged

Use the genesis root as a dependent root for the first two epochs#5515
jihoonsong merged 2 commits into
ethereum:masterfrom
jihoonsong:get-shuffling-dependent-root-genesis

Conversation

@jihoonsong

Copy link
Copy Markdown
Member

Previously, get_shuffling_dependent_root returned Root(), which causes some discrepancy between the spec and clients. The genesis block is the dependent block for the first two epochs and it seems all CL clients but Grandine use the genesis block root as a dependent root for the first two epochs. This PR modifies get_shuffling_dependent_root to return the genesis block root for epoch <= MIN_SEED_LOOKAHEAD.

@jihoonsong
jihoonsong requested review from jtraglia, mkalinin and nflaig and removed request for jtraglia and mkalinin August 5, 2026 08:41
@github-actions github-actions Bot added testing CI, actions, tests, testing infra phase0 gloas labels Aug 5, 2026
@jihoonsong
jihoonsong requested review from jtraglia and mkalinin August 5, 2026 08:41

@mkalinin mkalinin left a comment

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.

Looks good to me! 👍

@jihoonsong jihoonsong changed the title Use the genesis root as a shuffling dependent root for the first two epochs Use the genesis root as a dependent root for the first two epochs Aug 5, 2026
@jihoonsong
jihoonsong force-pushed the get-shuffling-dependent-root-genesis branch from cacba95 to dbe88cd Compare August 5, 2026 08:49

@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.

LGTM

@lodekeeper lodekeeper left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Matches Lodestar's implementation: near genesis, dependent roots resolve to the genesis block root rather than zero-root.

@povi

povi commented Aug 5, 2026

Copy link
Copy Markdown
Contributor

LGTM

Comment thread specs/phase0/fork-choice.md Outdated
@jihoonsong
jihoonsong enabled auto-merge (squash) August 5, 2026 13:43
@jihoonsong
jihoonsong merged commit a314c73 into ethereum:master Aug 5, 2026
17 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

gloas phase0 testing CI, actions, tests, testing infra

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants