assertPieceCidSize
assertPieceCidSize(
pieceCid):void
Defined in: packages/synapse-core/src/sp/add-pieces-fits.ts:76
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 |
|---|---|
pieceCid | PieceCID |
Returns
Section titled “Returns”void
Throws
Section titled “Throws”InvalidUploadSizeError