assertAddPiecesFit
assertAddPiecesFit(
options):void
Defined in: packages/synapse-core/src/utils/add-pieces-fits.ts:254
Throw if pieces is empty, a PieceCID is outside Curio’s size bounds, or the
list does not fit in one addPieces / createAndAdd message.
Parameters
Section titled “Parameters”| Parameter | Type | Description |
|---|---|---|
options |
LimiterOptions |
assertAddPiecesFit.OptionsType |
Returns
Section titled “Returns”void
Throws
Section titled “Throws”Errors assertAddPiecesFit.ErrorType