storage: print sector retries in sector info
This commit is contained in:
parent
ef0d45e406
commit
7d68d9a029
@ -87,6 +87,8 @@ type SectorInfo struct {
|
||||
Deals []uint64
|
||||
Ticket sectorbuilder.SealTicket
|
||||
Seed sectorbuilder.SealSeed
|
||||
Retries uint64
|
||||
|
||||
LastErr string
|
||||
}
|
||||
|
||||
|
@ -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)
|
||||
}
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user