From bb95541d10f530d0db28de65ce4783c115028c4c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C5=81ukasz=20Magiera?= Date: Thu, 13 Aug 2020 11:05:06 +0200 Subject: [PATCH] api: Invert StartDealParams fast retrieval param --- api/api_full.go | 2 +- api/test/deals.go | 2 +- cli/client.go | 4 ++-- node/impl/client/client.go | 2 +- 4 files changed, 5 insertions(+), 5 deletions(-) diff --git a/api/api_full.go b/api/api_full.go index f2585b9276c..7199fc10425 100644 --- a/api/api_full.go +++ b/api/api_full.go @@ -616,7 +616,7 @@ type StartDealParams struct { EpochPrice types.BigInt MinBlocksDuration uint64 DealStartEpoch abi.ChainEpoch - FastRetrieval bool + NoFastRetrieval bool VerifiedDeal bool } diff --git a/api/test/deals.go b/api/test/deals.go index 28944508336..99890f636c4 100644 --- a/api/test/deals.go +++ b/api/test/deals.go @@ -294,7 +294,7 @@ func startDeal(t *testing.T, ctx context.Context, miner TestStorageNode, client Miner: maddr, EpochPrice: types.NewInt(1000000), MinBlocksDuration: uint64(build.MinDealDuration), - FastRetrieval: fastRet, + NoFastRetrieval: !fastRet, }) if err != nil { t.Fatalf("%+v", err) diff --git a/cli/client.go b/cli/client.go index 0e70a6faab8..9b672ec401d 100644 --- a/cli/client.go +++ b/cli/client.go @@ -421,7 +421,7 @@ var clientDealCmd = &cli.Command{ EpochPrice: types.BigInt(price), MinBlocksDuration: uint64(dur), DealStartEpoch: abi.ChainEpoch(cctx.Int64("start-epoch")), - FastRetrieval: cctx.Bool("fast-retrieval"), + NoFastRetrieval: !cctx.Bool("fast-retrieval"), VerifiedDeal: isVerified, }) if err != nil { @@ -610,7 +610,7 @@ func interactiveDeal(cctx *cli.Context) error { EpochPrice: epochPrice, MinBlocksDuration: uint64(epochs), DealStartEpoch: abi.ChainEpoch(cctx.Int64("start-epoch")), - FastRetrieval: cctx.Bool("fast-retrieval"), + NoFastRetrieval: !cctx.Bool("fast-retrieval"), VerifiedDeal: false, // TODO: Allow setting }) if err != nil { diff --git a/node/impl/client/client.go b/node/impl/client/client.go index 4044878599d..0fc90f59add 100644 --- a/node/impl/client/client.go +++ b/node/impl/client/client.go @@ -159,7 +159,7 @@ func (a *API) ClientStartDeal(ctx context.Context, params *api.StartDealParams) Price: params.EpochPrice, Collateral: big.Zero(), Rt: rt, - FastRetrieval: params.FastRetrieval, + FastRetrieval: !params.NoFastRetrieval, VerifiedDeal: params.VerifiedDeal, StoreID: storeID, })