feat(rpc): add GET /lean/v0/genesis#455
Conversation
🤖 Kimi Code ReviewReview of PR 455: Add genesis RPC endpoint The implementation is clean and follows existing patterns, but there's a critical semantic issue regarding what constitutes "genesis" data. Critical Issue
Medium Concerns
Minor Suggestions
Code Quality
Recommendation: Address Item 1 (semantic mismatch) before merging. The current implementation will confuse users expecting immutable genesis data while the node is synced past genesis. Automated review by Kimi (Moonshot AI) · kimi-k2.5 · custom prompt |
🤖 Codex Code Review
No correctness, fork-choice, attestation, finalization, XMSS, or SSZ issues are introduced by this PR beyond that performance concern; the change is otherwise straightforward route wiring plus a focused test. I could not run the Rust test suite in this sandbox: Automated review by OpenAI Codex · gpt-5.4 · custom prompt |
🤖 Claude Code ReviewNow I have all the information I need. Here is the review: PR Review:
|
…ount test) Build a 3-validator anchor state in the genesis test so asserting validator_count == 3 actually exercises the handler. Also adds a clarifying comment explaining why head_state().validators.len() equals the genesis count (no churn in lean), and switches the test router to routes().with_state(store) for isolation.
c36ca30 to
b9422c3
Compare
🤖 Kimi Code ReviewThe PR introduces a new RPC endpoint to expose genesis configuration. The implementation is clean and follows Rust idioms. A few minor points:
Documentation
General
Automated review by Kimi (Moonshot AI) · kimi-k2.5 · custom prompt |
🤖 Codex Code Review
I did not find consensus-layer correctness regressions in this PR; it is isolated to RPC/docs wiring. I could not run the targeted test in this environment because the sandbox blocks writes to the default Automated review by OpenAI Codex · gpt-5.4 · custom prompt |
🤖 Claude Code ReviewReview:
|
Adds the
GET /lean/v0/genesisendpoint, which returns the genesis time and genesis validator set from the node's configuration.Useful for clients that need to bootstrap their slot clock or verify they are on the correct network. Has unit tests and passed clippy.
Stacked on #454.