From 396f5d610e17e664c8c1a484a30a6065886f163b Mon Sep 17 00:00:00 2001 From: Phi Date: Fri, 30 Sep 2022 10:39:41 +0200 Subject: [PATCH] fix: renew --only-cc with sectorfile Add the ability to extend/renew only CC-sectors with the `--only-cc` when using a sector-file. --- cmd/lotus-miner/sectors.go | 3 +++ 1 file changed, 3 insertions(+) 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) }