Beacon API: serve debug/fork_choice

Đang mở
#859 0 bình luận 0 reaction 0 người được giao Xem trên GitHub

Maintainer thường phản hồi trong vòng 6 ngày

Chưa có ai nhận issue này.

Đánh giá

Độ khó
3/5
Thời gian dự kiến
1-2 ngày
Mức phù hợp với người mới
55/100
Loại issue
Tính năng
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Sôi nổi
Công nghệ
rust
Lĩnh vực
api

Hướng nghiên cứu

The issue names its reference point, forky's internal/source/beacon_node.go, and the doc file docs/rpc.md. Start by locating the existing /lean/v0/fork_choice handler in the RPC module and see how it assembles a fork-choice response from the store, then mirror that for the GET /eth/v1/debug/fork_choice route with justified/finalized checkpoints and one node per stored block. Check how the gloas fork exposes payload status so it can be placed in extra_data, and finish with the rpc.md entry. Done means a forky poll returns nodes instead of a 404.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

Problem. ethereum-package's forky service collects nothing from an ethlambda beacon node. It polls /eth/v2/debug/fork_choice, falls back to /eth/v1/debug/fork_choice on a 404, and gets a 404 from that too. It retries every poll, publishes no frame, and its UI stays empty. This comes from reading forky's source (internal/source/beacon_node.go); nothing was run.

The lean surface has /lean/v0/fork_choice; the beacon surface has no fork-choice dump.

Fix.

  • Serve GET /eth/v1/debug/fork_choice per beacon-APIs: the justified and finalized checkpoints, then one fork_choice_nodes entry per block the store holds, each with its slot, root, parent, checkpoints, weight, validity and execution block hash.
  • Add gloas's payload status to each node in extra_data (forky passes extra_data through), so a dump taken under gloas shows FULL and EMPTY.
  • forky uses v1 when v2 is missing, so v1 alone is enough for it.
  • Document it in docs/rpc.md.
Ngôn ngữ chính
Rust
Star
86
Fork
34
Merge trung bình
9 ngày 20 giờ
Pull request đã merge (30 ngày)
77

Chuẩn bị môi trường

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của lambdaclass/ethlambda

Tất cả issue của lambdaclass/ethlambda

Issue tương tự

Thêm issue về Rust

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.