assertPieceCidSize
assertPieceCidSize(
pieceCid):void
Defined in: packages/synapse-core/src/utils/add-pieces-fits.ts:207
Throw if a PieceCID’s encoded raw size is outside Curio’s upload bounds (SIZE_CONSTANTS.MIN_UPLOAD_SIZE–SIZE_CONSTANTS.MAX_UPLOAD_SIZE).
Parameters
Section titled “Parameters”| Parameter | Type | Description |
|---|---|---|
pieceCid |
PieceCID |
The PieceCID to check. |
Returns
Section titled “Returns”void
Throws
Section titled “Throws”Errors assertPieceCidSize.ErrorType