4 #ifndef BITCOIN_KERNEL_MEMPOOL_LIMITS_H 5 #define BITCOIN_KERNEL_MEMPOOL_LIMITS_H 24 int64_t descendant_count{DEFAULT_DESCENDANT_LIMIT}; 26 int64_t descendant_size_vbytes{DEFAULT_DESCENDANT_SIZE_LIMIT_KVB * 1'000};
33 int64_t no_limit{std::numeric_limits<int64_t>::max()};
34 return {no_limit, no_limit, no_limit, no_limit};
39 #endif // BITCOIN_KERNEL_MEMPOOL_LIMITS_H Options struct containing limit options for a CTxMemPool.
static constexpr unsigned int DEFAULT_ANCESTOR_SIZE_LIMIT_KVB
Default for -limitancestorsize, maximum kilobytes of tx + all in-mempool ancestors.
static constexpr unsigned int DEFAULT_ANCESTOR_LIMIT
Default for -limitancestorcount, max number of in-mempool ancestors.
int64_t ancestor_size_vbytes
The maximum allowed size in virtual bytes of an entry and its ancestors within a package.
static constexpr MemPoolLimits NoLimits()
int64_t ancestor_count
The maximum allowed number of transactions in a package including the entry and its ancestors...