Skip to content

Commit

Permalink
Merge pull request #9428 from filecoin-project/backport/9402
Browse files Browse the repository at this point in the history
fix: renew --only-cc with sectorfile
  • Loading branch information
magik6k authored Oct 5, 2022
2 parents 3d23a54 + 396f5d6 commit 4d7eddc
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 4d7eddc

Please sign in to comment.