miner: Print (pre)commit message cids in sector status
This commit is contained in:
parent
15191ff80f
commit
e236173417
@ -128,6 +128,8 @@ type SectorInfo struct {
|
|||||||
Deals []abi.DealID
|
Deals []abi.DealID
|
||||||
Ticket SealTicket
|
Ticket SealTicket
|
||||||
Seed SealSeed
|
Seed SealSeed
|
||||||
|
PreCommitMsg *cid.Cid
|
||||||
|
CommitMsg *cid.Cid
|
||||||
Retries uint64
|
Retries uint64
|
||||||
ToUpgrade bool
|
ToUpgrade bool
|
||||||
|
|
||||||
|
@ -97,6 +97,8 @@ var sectorsStatusCmd = &cli.Command{
|
|||||||
fmt.Printf("TicketH:\t%d\n", status.Ticket.Epoch)
|
fmt.Printf("TicketH:\t%d\n", status.Ticket.Epoch)
|
||||||
fmt.Printf("Seed:\t\t%x\n", status.Seed.Value)
|
fmt.Printf("Seed:\t\t%x\n", status.Seed.Value)
|
||||||
fmt.Printf("SeedH:\t\t%d\n", status.Seed.Epoch)
|
fmt.Printf("SeedH:\t\t%d\n", status.Seed.Epoch)
|
||||||
|
fmt.Printf("Precommit:\t%s\n", status.PreCommitMsg)
|
||||||
|
fmt.Printf("Commit:\t\t%s\n", status.CommitMsg)
|
||||||
fmt.Printf("Proof:\t\t%x\n", status.Proof)
|
fmt.Printf("Proof:\t\t%x\n", status.Proof)
|
||||||
fmt.Printf("Deals:\t\t%v\n", status.Deals)
|
fmt.Printf("Deals:\t\t%v\n", status.Deals)
|
||||||
fmt.Printf("Retries:\t%d\n", status.Retries)
|
fmt.Printf("Retries:\t%d\n", status.Retries)
|
||||||
|
@ -153,6 +153,8 @@ func (sm *StorageMinerAPI) SectorsStatus(ctx context.Context, sid abi.SectorNumb
|
|||||||
Value: info.SeedValue,
|
Value: info.SeedValue,
|
||||||
Epoch: info.SeedEpoch,
|
Epoch: info.SeedEpoch,
|
||||||
},
|
},
|
||||||
|
PreCommitMsg: info.PreCommitMessage,
|
||||||
|
CommitMsg: info.CommitMessage,
|
||||||
Retries: info.InvalidProofs,
|
Retries: info.InvalidProofs,
|
||||||
ToUpgrade: sm.Miner.IsMarkedForUpgrade(sid),
|
ToUpgrade: sm.Miner.IsMarkedForUpgrade(sid),
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user