on chain deals: Actually set DataSize

This commit is contained in:
Łukasz Magiera
2019-10-23 20:04:07 +02:00
parent fabd074165
commit cdd91914b9
6 changed files with 54 additions and 29 deletions
+6 -6
View File
@@ -80,13 +80,13 @@ func (a *API) ClientStartDeal(ctx context.Context, data cid.Cid, miner address.A
total := types.BigMul(price, types.NewInt(blocksDuration))
proposal := deals.ClientDealProposal{
Data: data,
TotalPrice: total,
Data: data,
TotalPrice: total,
ProposalExpiration: math.MaxUint64, // TODO: set something reasonable
Duration: blocksDuration,
ProviderAddress: miner,
Client: self,
MinerID: pid,
Duration: blocksDuration,
ProviderAddress: miner,
Client: self,
MinerID: pid,
}
c, err := a.DealClient.Start(ctx, proposal)