Merge pull request #4976 from filcloud/fix-get-sector

fix get sector bug
This commit is contained in:
Łukasz Magiera 2020-11-23 18:58:04 +01:00 committed by GitHub
commit ffa96389bc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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)