Skip to content

MAX_SIZE

const MAX_SIZE: bigint = MAX_PAYLOAD_SIZE

Defined in: packages/synapse-core/src/piece/sizing.ts:49

Maximum payload size calculate accepts: 127 × 2^47 bytes (~15.9 PiB).

The 1-byte height field allows larger trees, but past this size the padding and piece size no longer fit exactly in a JS number. Matches the limit enforced by the hasher.