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

Aperta
#7,720 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
4/5
Tempo stimato
3-5 giorni
Idoneità per principianti
58/100
Tipo di issue
Funzionalità
Chiarezza
Abbastanza chiara
Stato di attività
Attiva
Stack tecnologico
rust
Ambito
blockchain, cli

Direzione di ricerca

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.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

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.
Lingua principale
Rust
Stelle
700
Fork
201
Merge medio
1g 17h
PR unite (30g)
65

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di ChainSafe/forest

Tutte le issue di ChainSafe/forest

Issue simili

Altre issue su Rust

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.