Built-in networks can't start from genesis without --checkpoint-sync-url

未關閉
#823 0 則留言 0 個 reaction 已指派 0 人 在 GitHub 檢視

維護者通常 6 天內回覆

還沒有人認領這個 Issue。

評估

難度
5/5
預估耗時
一週以上
新手友好度
35/100
Issue 類型
功能
描述清晰度
基本清楚
活躍度
活躍
技術堆疊
rust

研究方向

Start with docs/checkpoint_sync.md and trace the CheckpointSyncError::BeaconGenesisSync path for built-in networks and loaded network directories. Check whether beacon nodes range-sync forward after a peer's Status, as the issue suggests, before deciding between a genesis anchor and documenting the refusal. Done means choosing and implementing a supported behavior, with validation against the built-in genesis time and validators root if an anchor is added.

由索引模型根據 Issue 內容生成。

描述

Summary

On a fresh data directory, ethlambda beacon --network mainnet|sepolia|hoodi|plataberget without --checkpoint-sync-url aborts at startup with CheckpointSyncError::BeaconGenesisSync. The built-in networks have no genesis-sync path, because the binary doesn't embed their genesis states (about 5 MB for mainnet, 150 MB for Hoodi). A loaded network directory falls back to its own genesis.ssz instead. See docs/checkpoint_sync.md.

Where it shows up

ethereum-package with checkpoint_sync_enabled: false on a public network: the ethlambda node exits at startup. In that case the package passes Lighthouse --allow-insecure-genesis-sync --ignore-ws-check, so Lighthouse syncs from genesis behind an explicit opt-in. ethpandaops/ethereum-package#1515 doesn't guard against this combination yet.

Options

  1. An opt-in genesis anchor for the built-in networks, like Lighthouse's flag: load the genesis state from a path or URL (for example --genesis-state <path|url>), and check it against the built-in genesis_time and genesis_validators_root the same way a checkpoint anchor is checked.
  2. Keep refusing, and make that the documented answer. ethereum-package#1515 would then reject checkpoint_sync_enabled: false with ethlambda on a public network in input_parser, with a clear message.

docs/checkpoint_sync.md explains the refusal by saying the follower "imports nothing past its anchor", so a genesis anchor would stay parked at slot 0. The beacon node now range-syncs forward after a peer's Status, so that reason may be out of date. It's worth re-checking before choosing.

主要語言
Rust
星號
86
分支
34
平均合併
9 天 20 小時
30 天內合併 PR
77

環境準備

從這裡開始

  1. 先讀完整個 Issue,再讀專案的貢獻指南。
  2. 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
  3. Fork 儲存庫,在一個分支上完成修改。
  4. 送出 Pull Request,並在描述裡引用這個 Issue 編號。

lambdaclass/ethlambda 的其他 Issue

查看 lambdaclass/ethlambda 的全部 Issue

相似的 Issue

更多 Rust Issue

把新 issue 寄到你的電子郵件信箱

精選適合新手參與的 GitHub issue 摘要。