Skip to content

Define proposer duties v2 dependent_root for the Fulu fork epoch - #687

Open
tcoratger wants to merge 1 commit into
ethereum:masterfrom
tcoratger:proposer-v2-fulu-fork-epoch
Open

tcoratger wants to merge 1 commit into
ethereum:masterfrom
tcoratger:proposer-v2-fulu-fork-epoch

Conversation

@tcoratger

Copy link
Copy Markdown
Contributor

Same case as #671 for the PTC. The proposer lookahead of FULU_FORK_EPOCH is computed by upgrade_to_fulu from effective balances updated at the end of FULU_FORK_EPOCH - 1, so blocks of that epoch can still change it, while the v2 formula points at the last block of FULU_FORK_EPOCH - 2. A reorg of those blocks can then change the proposers without changing the dependent_root.

For epoch <= FULU_FORK_EPOCH the root is now compute_start_slot_at_epoch(epoch) - 1, the v1 value, and the general formula applies to later epochs only. Some clients already return this (deciding by whether Fulu is active at epoch - 1); others return the general formula at the fork epoch.

🤖 Generated with Claude Code

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

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

this api never existed at the fulu fork boundary since we introduced it later, this change seems quite academic to me

tcoratger added a commit to tcoratger/ethlib that referenced this pull request Nov 25, 2026
…root

The second proposer duties answer took the root at slot
start(epoch - 1) - 1 for every epoch. The upgrade to Fulu draws the
proposers of the fork epoch after the epoch processing of the epoch
before it, so the blocks of that epoch can still change them, and the
root must be the one at start(epoch) - 1, as before Fulu.

The answer now takes a lag of 0 up to FULU_FORK_EPOCH and of 1 after
it, as the PTC answer does at the Gloas fork epoch. Two theorems state
the root on each side of the fork epoch. The upstream text of the
endpoint has the same defect; ethereum/beacon-APIs#687 proposes the fix.

Closes ethereum#4603.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
tcoratger added a commit to ethereum/EthLib that referenced this pull request Nov 25, 2026
…root (#4649)

The second proposer duties answer took the root at slot
start(epoch - 1) - 1 for every epoch. The upgrade to Fulu draws the
proposers of the fork epoch after the epoch processing of the epoch
before it, so the blocks of that epoch can still change them, and the
root must be the one at start(epoch) - 1, as before Fulu.

The answer now takes a lag of 0 up to FULU_FORK_EPOCH and of 1 after
it, as the PTC answer does at the Gloas fork epoch. Two theorems state
the root on each side of the fork epoch. The upstream text of the
endpoint has the same defect; ethereum/beacon-APIs#687 proposes the fix.

Closes #4603.

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
@tcoratger

Copy link
Copy Markdown
Contributor Author

Agreed that no public network reaches it: on mainnet and the current testnets the Fulu fork epoch passed before v2 existed.

It is still reachable on a new network that forks into Fulu after genesis, such as a devnet or a local multi-client test with FULU_FORK_EPOCH > 0. There, a client following the current text and one deciding by the fork return different roots for the same request, and a reorg in FULU_FORK_EPOCH - 1 changes the duties without changing the root that the text gives.

If you would rather not specify a past boundary, an alternative is one sentence saying the formula applies from FULU_FORK_EPOCH + 1 and leaving the fork epoch undefined. I am also fine closing this if that is preferred.

This branch has not been deployed

No deployments
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