client deal: Cache CommD when creating multiple deals
This commit is contained in:
@@ -33,6 +33,7 @@
|
||||
* [Client](#Client)
|
||||
* [ClientCalcCommP](#ClientCalcCommP)
|
||||
* [ClientDataTransferUpdates](#ClientDataTransferUpdates)
|
||||
* [ClientDealPieceCID](#ClientDealPieceCID)
|
||||
* [ClientDealSize](#ClientDealSize)
|
||||
* [ClientFindData](#ClientFindData)
|
||||
* [ClientGenCar](#ClientGenCar)
|
||||
@@ -868,6 +869,32 @@ Response:
|
||||
}
|
||||
```
|
||||
|
||||
### ClientDealPieceCID
|
||||
ClientCalcCommP calculates the CommP and data size of the specified CID
|
||||
|
||||
|
||||
Perms: read
|
||||
|
||||
Inputs:
|
||||
```json
|
||||
[
|
||||
{
|
||||
"/": "bafy2bzacea3wsdh6y3a36tb3skempjoxqpuyompjbmfeyf34fi3uy6uue42v4"
|
||||
}
|
||||
]
|
||||
```
|
||||
|
||||
Response:
|
||||
```json
|
||||
{
|
||||
"PayloadSize": 9,
|
||||
"PieceSize": 1032,
|
||||
"PieceCID": {
|
||||
"/": "bafy2bzacea3wsdh6y3a36tb3skempjoxqpuyompjbmfeyf34fi3uy6uue42v4"
|
||||
}
|
||||
}
|
||||
```
|
||||
|
||||
### ClientDealSize
|
||||
ClientDealSize calculates real deal data size
|
||||
|
||||
|
||||
Reference in New Issue
Block a user