4 #ifndef BITCOIN_KERNEL_MEMPOOL_LIMITS_H 5 #define BITCOIN_KERNEL_MEMPOOL_LIMITS_H 24 int64_t ancestor_count{DEFAULT_ANCESTOR_LIMIT}; 26 int64_t descendant_count{DEFAULT_DESCENDANT_LIMIT}; 31 static constexpr MemPoolLimits NoLimits() 33 int64_t no_limit{std::numeric_limits<int64_t>::max()}; 34 return {std::numeric_limits<unsigned>::max(), no_limit, no_limit, no_limit}; 39 #endif // BITCOIN_KERNEL_MEMPOOL_LIMITS_H unsigned cluster_count
The maximum number of transactions in a cluster.
Options struct containing limit options for a CTxMemPool.
int64_t cluster_size_vbytes
The maximum allowed size in virtual bytes of a cluster.
static constexpr unsigned int DEFAULT_CLUSTER_SIZE_LIMIT_KVB
Maximum size of cluster in virtual kilobytes.
static constexpr unsigned int DEFAULT_CLUSTER_LIMIT
Maximum number of transactions per cluster (default)