Skip to main content

GETDATA_MAX_TRANSACTION_COUNT

Constant GETDATA_MAX_TRANSACTION_COUNT 

Source
pub const GETDATA_MAX_TRANSACTION_COUNT: usize = _; // 25_000usize
Expand description

The maximum number of transaction IDs the Inbound service will look up in the mempool in response to a transaction request, before ignoring any additional transaction IDs in that request.

Derived from MAX_TX_INV_IN_SENT_MESSAGE: Zebra never advertises more transactions than that in a single inv message, so an honest peer following our advertisements never requests more than this in a single getdata. The wire format allows larger requests (MAX_INV_IN_RECEIVED_MESSAGE is 50,000), so the limit is taken from the protocol constant, not the message size.