diff --git a/cmd/lotus-miner/sectors.go b/cmd/lotus-miner/sectors.go index bcd60acf2..44bce55bc 100644 --- a/cmd/lotus-miner/sectors.go +++ b/cmd/lotus-miner/sectors.go @@ -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) }