Add `forest-cli state reward` to inspect the reward actor's stream ledger

Đang mở
#7,720 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 1 ngày

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

Đánh giá

Độ khó
4/5
Thời gian dự kiến
3-5 ngày
Mức phù hợp với người mới
58/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
blockchain, cli

Hướng nghiên cứu

Read Lotus v1.37.0's StateRewardCmd in cli/state.go and the related Forest work in #7658 and #7709 to understand the command and ledger type. Implement forest-cli state reward with the specified tipset default, JSON option, and pre-NV29 error; done when both completion criteria pass.

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

Mô tả

Type: Task

Summary

Lotus v1.37.0 has lotus state reward [--tipset <ref>] [--json]. It reads the reward actor's state at a tipset and prints the stream ledger

This complements Filecoin.StateRewardDistribution (#7709), which reports how one tipset's block rewards were split; this command shows the stream configuration that split comes from.

Completion Criteria

  • forest-cli state reward [--tipset <ref>] [--json] prints the reward actor's stream ledger at the given tipset (default: head)
  • Before NV29 the command fails with a clear error, as Lotus does (reward streams are unsupported in actors v18).

Additional Links & Resources

  • Lotus command: StateRewardCmd, ledger type
  • Related: #7658, #7709, FIP-0118.
Ngôn ngữ chính
Rust
Star
700
Fork
201
Merge trung bình
1 ngày 17 giờ
Pull request đã merge (30 ngày)
65

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 ChainSafe/forest

Tất cả issue của ChainSafe/forest

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.