Merge pull request #4077 from filecoin-project/4076-remove-ask-duration
Always use default 720h for setask duration and hide the duration param option
This commit is contained in:
commit
0fee5dab8a
@ -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`",
|
Usage: "Set the price of the ask for verified deals (specified as attoFIL / GiB / Epoch) to `PRICE`",
|
||||||
Required: true,
|
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{
|
&cli.StringFlag{
|
||||||
Name: "min-piece-size",
|
Name: "min-piece-size",
|
||||||
Usage: "Set minimum piece size (w/bit-padding, in bytes) in ask to `SIZE`",
|
Usage: "Set minimum piece size (w/bit-padding, in bytes) in ask to `SIZE`",
|
||||||
@ -194,7 +188,7 @@ var setAskCmd = &cli.Command{
|
|||||||
pri := types.NewInt(cctx.Uint64("price"))
|
pri := types.NewInt(cctx.Uint64("price"))
|
||||||
vpri := types.NewInt(cctx.Uint64("verified-price"))
|
vpri := types.NewInt(cctx.Uint64("verified-price"))
|
||||||
|
|
||||||
dur, err := time.ParseDuration(cctx.String("duration"))
|
dur, err := time.ParseDuration("720h0m0s")
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return xerrors.Errorf("cannot parse duration: %w", err)
|
return xerrors.Errorf("cannot parse duration: %w", err)
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user