In Bitcoin Core there is a MAX_SIZE variable 0x0200_0000 that we are not using.
Look into if we should be using/enforcing this limit. The thing that has confused me is that MAX_SIZE fits in a u32 so why does CompactSize have the 0xFF initial byte and 9 byte encoding for u64s.
Discovered while hacking on #3259
In Bitcoin Core there is a
MAX_SIZEvariable0x0200_0000that we are not using.Look into if we should be using/enforcing this limit. The thing that has confused me is that
MAX_SIZEfits in au32so why doesCompactSizehave the0xFFinitial byte and 9 byte encoding foru64s.Discovered while hacking on #3259