chore: remove old deposit mechanism in fulu#9459
Conversation
There was a problem hiding this comment.
Code Review
This pull request implements changes to handle the removal of the Eth1 bridge deposit mechanism starting from the Fulu fork. Specifically, it restricts setting depositRequestsStartIndex and checking pending Eth1 bridge deposits to pre-Fulu forks, and updates getEth1DepositCount to return 0 for Fulu and later forks. A corresponding unit test has been added to verify this behavior. There are no review comments, and I have no additional feedback to provide.
Important
The consumer version of Gemini Code Assist on GitHub is being sunset. Starting June 18, 2026, new organization installations will be blocked, and all code review activity will officially cease on July 17, 2026.
For more details on the timeline and next steps, please review the Help Documentation.
Performance Report🚀🚀 Significant benchmark improvement detected
Full benchmark results
|
ensi321
left a comment
There was a problem hiding this comment.
looks good to me. Minor comments about style
lodekeeper
left a comment
There was a problem hiding this comment.
LGTM. Reviewed against v1.7.0-alpha.9 Fulu spec (specs/fulu/beacon-chain.md):
processDepositRequest.ts: gate matches Fulu's modifiedprocess_deposit_request, which only appends topending_depositsand no longer touchesdeposit_requests_start_index.processPendingDeposits.ts: gate matches the removal of the "no requests before bridge deposits" condition post-Fulu (since bridge deposits are gone).util/deposit.ts:getEth1DepositCount → 0for Fulu+ is the right single-source change. The existingbody.deposits.length !== maxDepositscheck inprocessOperationsthen enforcesassert len(body.deposits) == 0from the Fulu spec, and the unchangedfor (const deposit of body.deposits) processDeposit(...)loop is naturally a no-op once that assert has passed. Cleaner than a separate Fulu branch.- Iterator-skip removal +
spec-tests-version.jsonbump look right;v1.7.0-alpha.10release tarball isn't published on consensus-specs yet (current CI download step 404s), but the alpha.10 nightly artifacts from consensus-specs run 26884230978 — which are the exact build that will become alpha.10 — pass on this branch per @nflaig's local run. Once the release publishes, the existing CI cache step will pick it up cleanly. - Unit test covers the new Fulu branch of
getEth1DepositCountdirectly.
Closed my parallel attempt (#9458) — this is strictly cleaner.
|
🎉 This PR is included in v1.44.0 🎉 |
see ethereum/consensus-specs#4704, closes #9448