Merge pull request #2198 from filecoin-project/feat/cli-fast-retrieval
CLI: add --fast retrieval flag to lotus client deal
This commit is contained in:
commit
1b0d87cafd
@ -437,6 +437,7 @@ type StartDealParams struct {
|
|||||||
EpochPrice types.BigInt
|
EpochPrice types.BigInt
|
||||||
MinBlocksDuration uint64
|
MinBlocksDuration uint64
|
||||||
DealStartEpoch abi.ChainEpoch
|
DealStartEpoch abi.ChainEpoch
|
||||||
|
FastRetrieval bool
|
||||||
VerifiedDeal bool
|
VerifiedDeal bool
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -232,6 +232,11 @@ var clientDealCmd = &cli.Command{
|
|||||||
Usage: "specify the epoch that the deal should start at",
|
Usage: "specify the epoch that the deal should start at",
|
||||||
Value: -1,
|
Value: -1,
|
||||||
},
|
},
|
||||||
|
&cli.BoolFlag{
|
||||||
|
Name: "fast-retrieval",
|
||||||
|
Usage: "indicates that data should be available for fast retrieval",
|
||||||
|
Value: true,
|
||||||
|
},
|
||||||
&cli.BoolFlag{
|
&cli.BoolFlag{
|
||||||
Name: "verified-deal",
|
Name: "verified-deal",
|
||||||
Usage: "indicate that the deal counts towards verified client total",
|
Usage: "indicate that the deal counts towards verified client total",
|
||||||
@ -318,6 +323,7 @@ var clientDealCmd = &cli.Command{
|
|||||||
EpochPrice: types.BigInt(price),
|
EpochPrice: types.BigInt(price),
|
||||||
MinBlocksDuration: uint64(dur),
|
MinBlocksDuration: uint64(dur),
|
||||||
DealStartEpoch: abi.ChainEpoch(cctx.Int64("start-epoch")),
|
DealStartEpoch: abi.ChainEpoch(cctx.Int64("start-epoch")),
|
||||||
|
FastRetrieval: cctx.Bool("fast-retrieval"),
|
||||||
VerifiedDeal: cctx.Bool("verified-deal"),
|
VerifiedDeal: cctx.Bool("verified-deal"),
|
||||||
})
|
})
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
@ -136,7 +136,7 @@ func (a *API) ClientStartDeal(ctx context.Context, params *api.StartDealParams)
|
|||||||
params.EpochPrice,
|
params.EpochPrice,
|
||||||
big.Zero(),
|
big.Zero(),
|
||||||
rt,
|
rt,
|
||||||
false,
|
params.FastRetrieval,
|
||||||
params.VerifiedDeal,
|
params.VerifiedDeal,
|
||||||
)
|
)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user