Constant reth_network::transactions::constants::tx_fetcher::DEFAULT_MARGINAL_COUNT_HASHES_GET_POOLED_TRANSACTIONS_REQUEST
source · pub const DEFAULT_MARGINAL_COUNT_HASHES_GET_POOLED_TRANSACTIONS_REQUEST: usize = 8;
Expand description
Marginal on the number of hashes to preallocate memory for in a
GetPooledTransactions
request, when packed
according to the Eth68
protocol version. To make
sure enough memory is preallocated in most cases, it’s sensible to use a margin. This,
since the capacity is calculated based on median value
MEDIAN_BYTE_SIZE_SMALL_LEGACY_TX_ENCODED
. There may otherwise be a noteworthy number of
cases where just 1 or 2 bytes too little memory is preallocated.
Default is 8 hashes.