pub const MAX_COMPACT_SIZE: u64 = 0x0200_0000;
Largest CompactSize value accepted when reading (zcashd’s MAX_SIZE, 32 MiB). Larger lengths cannot describe a valid transaction field and are rejected before any allocation.
MAX_SIZE