Skip to content

Commit

Permalink
fix: renew --only-cc with sectorfile
Browse files Browse the repository at this point in the history
Add the ability to extend/renew only CC-sectors with the `--only-cc` when using a sector-file.
  • Loading branch information
rjan90 authored and magik6k committed Oct 5, 2022
1 parent 3d23a54 commit 396f5d6
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions cmd/lotus-miner/sectors.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}
Expand Down

0 comments on commit 396f5d6

Please sign in to comment.