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

未关闭
#7,720 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

维护者通常 1 天内回复

还没有人认领这个 Issue。

评估

难度
4/5
预计耗时
3-5 天
新手友好度
58/100
Issue 类型
功能
描述清晰度
基本清楚
活跃度
活跃
技术栈
rust
领域
blockchain, cli

调研方向

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.

由索引模型根据 Issue 内容生成。

描述

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.
主要语言
Rust
星标
700
派生
201
平均合并
1 天 17 小时
30 天内合并 PR
65

环境准备

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

ChainSafe/forest 的其他 Issue

查看 ChainSafe/forest 的全部 Issue

相似的 Issue

更多 Rust Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。