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