From 460c91b93f4bad7739ca7e0e0caef1d3f6e45b23 Mon Sep 17 00:00:00 2001 From: Geoff Stuart Date: Tue, 3 Jan 2023 10:20:34 -0500 Subject: [PATCH] Remove accidental changes to sectors.go --- cmd/lotus-miner/sectors.go | 28 +++++++++++++++++++--------- documentation/en/cli-lotus-miner.md | 1 + 2 files changed, 20 insertions(+), 9 deletions(-) diff --git a/cmd/lotus-miner/sectors.go b/cmd/lotus-miner/sectors.go index 9bfe56c4e..3bb904d7a 100644 --- a/cmd/lotus-miner/sectors.go +++ b/cmd/lotus-miner/sectors.go @@ -1119,21 +1119,31 @@ var sectorsExtendCmd = &cli.Command{ ArgsUsage: "", Flags: []cli.Flag{ &cli.Int64Flag{ - Name: "new-expiration", - Usage: "new expiration epoch", + Name: "new-expiration", + Usage: "new expiration epoch", + Required: false, }, &cli.BoolFlag{ - Name: "v1-sectors", - Usage: "renews all v1 sectors up to the maximum possible lifetime", + Name: "v1-sectors", + Usage: "renews all v1 sectors up to the maximum possible lifetime", + Required: false, }, &cli.Int64Flag{ - Name: "expiration-ignore", - Value: 120, - Usage: "when extending v1 sectors, skip sectors whose current expiration is less than epochs from now", + Name: "tolerance", + Value: 20160, + Usage: "when extending v1 sectors, don't try to extend sectors by fewer than this number of epochs", + Required: false, }, &cli.Int64Flag{ - Name: "expiration-cutoff", - Usage: "when extending v1 sectors, skip sectors whose current expiration is more than epochs from now (infinity if unspecified)", + Name: "expiration-ignore", + Value: 120, + Usage: "when extending v1 sectors, skip sectors whose current expiration is less than epochs from now", + Required: false, + }, + &cli.Int64Flag{ + Name: "expiration-cutoff", + Usage: "when extending v1 sectors, skip sectors whose current expiration is more than epochs from now (infinity if unspecified)", + Required: false, }, &cli.StringFlag{}, }, diff --git a/documentation/en/cli-lotus-miner.md b/documentation/en/cli-lotus-miner.md index 4f3f33cf6..b666d8ca7 100644 --- a/documentation/en/cli-lotus-miner.md +++ b/documentation/en/cli-lotus-miner.md @@ -1919,6 +1919,7 @@ OPTIONS: --expiration-cutoff value when extending v1 sectors, skip sectors whose current expiration is more than epochs from now (infinity if unspecified) (default: 0) --expiration-ignore value when extending v1 sectors, skip sectors whose current expiration is less than epochs from now (default: 120) --new-expiration value new expiration epoch (default: 0) + --tolerance value when extending v1 sectors, don't try to extend sectors by fewer than this number of epochs (default: 20160) --v1-sectors renews all v1 sectors up to the maximum possible lifetime (default: false) ```