fix: renew --only-cc with sectorfile

Add the ability to extend/renew only CC-sectors with the `--only-cc` when using a sector-file.
This commit is contained in:
Phi 2022-09-30 10:39:41 +02:00
parent 88a17013dd
commit 70bb865f81

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