Beacon API: serve states/{state_id}/committees and blocks/{block_id}/attestations

オープン
#858 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 6 日以内に返信

まだ誰も着手していません。

評価

難易度
3/5
見積もり時間
1〜2日
初心者へのやさしさ
56/100
issue の種類
機能追加
明瞭さ
明確に書かれている
活発さ
活発
技術スタック
rust
領域
api

調査の方向性

The payload names only docs/rpc.md; start by locating the existing beacon API route table and the committee shuffling the node already computes during attestation validation. Implement GET /eth/v1/beacon/states/{state_id}/committees with the epoch, index and slot filters, then GET /eth/v2/beacon/blocks/{block_id}/attestations honouring Eth-Consensus-Version, and add both to docs/rpc.md. Done means xatu sentry, assertoor and slashoor receive real data instead of 404s.

索引モデルが issue の本文から書いたものです。

説明

Problem. GET /eth/v1/beacon/states/{state_id}/committees and GET /eth/v2/beacon/blocks/{block_id}/attestations are not served. Three of ethereum-package's tools depend on them. These findings come from reading each tool's source against main (b2722cfd); nothing was run.

  • xatu sentry (one per participant): its duties service fetches states/head/committees.
    • On the 404 it retries for 15 minutes and then never reports ready.
    • Every event handler checks that readiness, so the sentry stays up but drops every event (head, block, attestation, data column, proposer duties) and logs an error for each.
    • Removing attestation from its subscriptions does not avoid this: the package's template also enables committee fetching.
  • assertoor: check_consensus_attestation_stats asks for committees by state root. The task never records a result, so the bundled stability-check playbook never passes.
    • On an ethlambda-only network the state-root lookup in lambdaclass/ethlambda#857 is needed as well.
    • In a mixed network it can pass by chance, when the request goes to another client.
  • slashoor: it reads blocks/{id}/attestations and the committees to find double and surround votes.
    • On 404s it processes zero attestations and logs nothing, so it misses every attester slashing.
    • Proposer slashings still work.

Fix.

  • Serve GET /eth/v1/beacon/states/{state_id}/committees, with the epoch, index and slot filters, from the committee shuffling the node already computes for attestation validation.
  • Serve GET /eth/v2/beacon/blocks/{block_id}/attestations, with Eth-Consensus-Version.
  • Document both in docs/rpc.md.
主要言語
Rust
スター
86
フォーク
34
平均マージ
9日 20時間
マージ済み PR(30日)
77

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

lambdaclass/ethlambda のほかの issue

lambdaclass/ethlambda の issue をすべて見る

似ている issue

Rust の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。