Repository navigation
Conversation
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
nflaig
left a comment
There was a problem hiding this comment.
this api never existed at the fulu fork boundary since we introduced it later, this change seems quite academic to me
…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>
…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>
|
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 If you would rather not specify a past boundary, an alternative is one sentence saying the formula applies from |
Same case as #671 for the PTC. The proposer lookahead of
FULU_FORK_EPOCHis computed byupgrade_to_fulufrom effective balances updated at the end ofFULU_FORK_EPOCH - 1, so blocks of that epoch can still change it, while the v2 formula points at the last block ofFULU_FORK_EPOCH - 2. A reorg of those blocks can then change the proposers without changing thedependent_root.For
epoch <= FULU_FORK_EPOCHthe root is nowcompute_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 atepoch - 1); others return the general formula at the fork epoch.🤖 Generated with Claude Code