maxChunkBytes constant

int const maxChunkBytes

The largest chunk a node will accept or emit, so a malicious or buggy peer cannot force an allocation of arbitrary size.

Implementation

static const int maxChunkBytes = 8 * 1024 * 1024;