Skip to content

Commit

Permalink
Merge pull request #4077 from filecoin-project/4076-remove-ask-duration
Browse files Browse the repository at this point in the history
Always use default 720h for setask duration and hide the duration param option
  • Loading branch information
magik6k authored Oct 4, 2020
2 parents 4631cee + 124bd0c commit 0fee5da
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions cmd/lotus-storage-miner/market.go
Original file line number Diff line number Diff line change
Expand Up @@ -164,12 +164,6 @@ var setAskCmd = &cli.Command{
Usage: "Set the price of the ask for verified deals (specified as attoFIL / GiB / Epoch) to `PRICE`",
Required: true,
},
&cli.StringFlag{
Name: "duration",
Usage: "Set duration of ask (a quantity of time after which the ask expires) `DURATION`",
DefaultText: "720h0m0s",
Value: "720h0m0s",
},
&cli.StringFlag{
Name: "min-piece-size",
Usage: "Set minimum piece size (w/bit-padding, in bytes) in ask to `SIZE`",
Expand All @@ -194,7 +188,7 @@ var setAskCmd = &cli.Command{
pri := types.NewInt(cctx.Uint64("price"))
vpri := types.NewInt(cctx.Uint64("verified-price"))

dur, err := time.ParseDuration(cctx.String("duration"))
dur, err := time.ParseDuration("720h0m0s")
if err != nil {
return xerrors.Errorf("cannot parse duration: %w", err)
}
Expand Down

0 comments on commit 0fee5da

Please sign in to comment.