fix get sector nil pointer bug
This commit is contained in:
parent
375b7a1c4c
commit
721120fc60
@ -1759,6 +1759,9 @@ var stateSectorCmd = &cli.Command{
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
if si == nil {
|
||||
return xerrors.Errorf("sector %d for miner %s not found", sid, maddr)
|
||||
}
|
||||
|
||||
fmt.Println("SectorNumber: ", si.SectorNumber)
|
||||
fmt.Println("SealProof: ", si.SealProof)
|
||||
|
Loading…
Reference in New Issue
Block a user