Skip to content

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_SIZESIZE_CONSTANTS.MAX_UPLOAD_SIZE).

ParameterType
pieceCidPieceCID

void

InvalidUploadSizeError