Merge pull request #9184 from filecoin-project/feat/secrenew-only-cc
feat: sectors renew --only-cc
This commit is contained in:
commit
9fb1a0d4b3
@ -796,6 +796,10 @@ var sectorsRenewCmd = &cli.Command{
|
||||
Name: "new-expiration",
|
||||
Usage: "try to extend selected sectors to this epoch, ignoring extension",
|
||||
},
|
||||
&cli.BoolFlag{
|
||||
Name: "only-cc",
|
||||
Usage: "only extend CC sectors (useful for making sector ready for snap upgrade)",
|
||||
},
|
||||
&cli.Int64Flag{
|
||||
Name: "tolerance",
|
||||
Usage: "don't try to extend sectors by fewer than this number of epochs, defaults to 7 days",
|
||||
@ -931,6 +935,10 @@ var sectorsRenewCmd = &cli.Command{
|
||||
}
|
||||
|
||||
for _, si := range activeSet {
|
||||
if len(si.DealIDs) > 0 && cctx.Bool("only-cc") {
|
||||
continue
|
||||
}
|
||||
|
||||
if si.Expiration >= from && si.Expiration <= to {
|
||||
if _, exclude := excludeSet[uint64(si.SectorNumber)]; !exclude {
|
||||
sis = append(sis, si)
|
||||
|
@ -1789,6 +1789,7 @@ OPTIONS:
|
||||
--from value only consider sectors whose current expiration epoch is in the range of [from, to], <from> defaults to: now + 120 (1 hour) (default: 0)
|
||||
--max-fee value use up to this amount of FIL for one message. pass this flag to avoid message congestion. (default: "0")
|
||||
--new-expiration value try to extend selected sectors to this epoch, ignoring extension (default: 0)
|
||||
--only-cc only extend CC sectors (useful for making sector ready for snap upgrade) (default: false)
|
||||
--really-do-it pass this flag to really renew sectors, otherwise will only print out json representation of parameters (default: false)
|
||||
--sector-file value provide a file containing one sector number in each line, ignoring above selecting criteria
|
||||
--to value only consider sectors whose current expiration epoch is in the range of [from, to], <to> defaults to: now + 92160 (32 days) (default: 0)
|
||||
|
Loading…
Reference in New Issue
Block a user