Merge pull request #9402 from filecoin-project/fix/sector-file-only-cc

fix: cli: renew --only-cc with sectorfile
This commit is contained in:
Łukasz Magiera 2022-09-30 10:57:57 +00:00 committed by GitHub
commit 6246cf5499
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -918,6 +918,9 @@ var sectorsRenewCmd = &cli.Command{
}
si, found := activeSectorsInfo[abi.SectorNumber(id)]
if len(si.DealIDs) > 0 && cctx.Bool("only-cc") {
continue
}
if !found {
return xerrors.Errorf("sector %d is not active", id)
}