Constant zebra_network::protocol::external::inv::MAX_TX_INV_IN_SENT_MESSAGE
source · pub const MAX_TX_INV_IN_SENT_MESSAGE: u64 = 25_000;
Expand description
The maximum number of transaction 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.
This constant is not critical to compatibility: it just needs to be less than or equal to
zcashd
’s MAX_INV_SZ
:
https://github.com/zcash/zcash/blob/adfc7218435faa1c8985a727f997a795dcffa0c7/src/net.h#L50