Skip to content

Commit 95fc708

Browse files
committed
chore: update miner sector command
1 parent 8821e87 commit 95fc708

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

cmd/state.go

+11
Original file line numberDiff line numberDiff line change
@@ -302,6 +302,17 @@ var stateSectorCmd = &cmds.Command{
302302
writer.Println("InitialPledge: ", types.FIL(si.InitialPledge))
303303
writer.Println()
304304

305+
edr := big.Zero()
306+
if si.ExpectedDayReward != nil {
307+
edr = *si.ExpectedDayReward
308+
}
309+
writer.Println("ExpectedDayReward: ", types.FIL(edr))
310+
esp := big.Zero()
311+
if si.ExpectedStoragePledge != nil {
312+
esp = *si.ExpectedStoragePledge
313+
}
314+
writer.Println("ExpectedStoragePledge: ", types.FIL(esp))
315+
305316
sp, err := env.(*node.Env).ChainAPI.StateSectorPartition(req.Context, maddr, abi.SectorNumber(sid), ts.Key())
306317
if err != nil {
307318
return err

0 commit comments

Comments
 (0)