pub const MAX_INV_IN_RECEIVED_MESSAGE: u64 = 50_000;Expand description
The maximum number of inventory items in a network message received from a peer.
After ZIP-239, this would allow a message filled
with MSG_WTX entries to be around 3.4 MB, so we also need a separate constant to limit the
number of inv entries that we send.
Same as MAX_INV_SZ in zcashd:
https://github.com/zcash/zcash/blob/adfc7218435faa1c8985a727f997a795dcffa0c7/src/net.h#L50