use the miner's proof type when proposing storage deals

This commit is contained in:
Steven Allen 2020-11-13 16:11:52 -08:00 committed by Łukasz Magiera
parent 638900f97f
commit bead8ac38e

View File

@ -165,7 +165,7 @@ func (a *API) ClientStartDeal(ctx context.Context, params *api.StartDealParams)
EndEpoch: calcDealExpiration(params.MinBlocksDuration, md, dealStart),
Price: params.EpochPrice,
Collateral: params.ProviderCollateral,
Rt: abi.RegisteredSealProof_StackedDrg32GiBV1_1, // all proof types have the same D tree
Rt: mi.SealProofType,
FastRetrieval: params.FastRetrieval,
VerifiedDeal: params.VerifiedDeal,
StoreID: storeID,