diff --git a/api/api_storage.go b/api/api_storage.go index ef960edcf..816ad74bf 100644 --- a/api/api_storage.go +++ b/api/api_storage.go @@ -87,6 +87,8 @@ type SectorInfo struct { Deals []uint64 Ticket sectorbuilder.SealTicket Seed sectorbuilder.SealSeed + Retries uint64 + LastErr string } diff --git a/cmd/lotus-storage-miner/sectors.go b/cmd/lotus-storage-miner/sectors.go index 62e62f3da..bdc73f236 100644 --- a/cmd/lotus-storage-miner/sectors.go +++ b/cmd/lotus-storage-miner/sectors.go @@ -73,6 +73,7 @@ var sectorsStatusCmd = &cli.Command{ fmt.Printf("SeedH:\t\t%d\n", status.Seed.BlockHeight) fmt.Printf("Proof:\t\t%x\n", status.Proof) fmt.Printf("Deals:\t\t%v\n", status.Deals) + fmt.Printf("Retries:\t\t%d\n", status.Retries) if status.LastErr != "" { fmt.Printf("Last Error:\t\t%s\n", status.LastErr) } diff --git a/node/impl/storminer.go b/node/impl/storminer.go index 30a7c9778..2b3a0352e 100644 --- a/node/impl/storminer.go +++ b/node/impl/storminer.go @@ -167,6 +167,7 @@ func (sm *StorageMinerAPI) SectorsStatus(ctx context.Context, sid uint64) (api.S Deals: deals, Ticket: info.Ticket.SB(), Seed: info.Seed.SB(), + Retries: info.Nonce, LastErr: info.LastErr, }, nil