Bitcoin Core 28.99.0
P2P Digital Currency
Static Public Member Functions | Public Attributes | List of all members
kernel::MemPoolLimits Struct Reference

Options struct containing limit options for a CTxMemPool. More...

#include <mempool_limits.h>

Static Public Member Functions

static constexpr MemPoolLimits NoLimits ()
 

Public Attributes

int64_t ancestor_count {DEFAULT_ANCESTOR_LIMIT}
 The maximum allowed number of transactions in a package including the entry and its ancestors. More...
 
int64_t ancestor_size_vbytes {DEFAULT_ANCESTOR_SIZE_LIMIT_KVB * 1'000}
 The maximum allowed size in virtual bytes of an entry and its ancestors within a package. More...
 
int64_t descendant_count {DEFAULT_DESCENDANT_LIMIT}
 The maximum allowed number of transactions in a package including the entry and its descendants. More...
 
int64_t descendant_size_vbytes {DEFAULT_DESCENDANT_SIZE_LIMIT_KVB * 1'000}
 The maximum allowed size in virtual bytes of an entry and its descendants within a package. More...
 

Detailed Description

Options struct containing limit options for a CTxMemPool.

Default constructor populates the struct with sane default values which can be modified.

Most of the time, this struct should be referenced as CTxMemPool::Limits.

Definition at line 18 of file mempool_limits.h.

Member Function Documentation

◆ NoLimits()

static constexpr MemPoolLimits kernel::MemPoolLimits::NoLimits ( )
inlinestaticconstexpr
Returns
MemPoolLimits with all the limits set to the maximum

Definition at line 31 of file mempool_limits.h.

Here is the caller graph for this function:

Member Data Documentation

◆ ancestor_count

int64_t kernel::MemPoolLimits::ancestor_count {DEFAULT_ANCESTOR_LIMIT}

The maximum allowed number of transactions in a package including the entry and its ancestors.

Definition at line 20 of file mempool_limits.h.

◆ ancestor_size_vbytes

int64_t kernel::MemPoolLimits::ancestor_size_vbytes {DEFAULT_ANCESTOR_SIZE_LIMIT_KVB * 1'000}

The maximum allowed size in virtual bytes of an entry and its ancestors within a package.

Definition at line 22 of file mempool_limits.h.

◆ descendant_count

int64_t kernel::MemPoolLimits::descendant_count {DEFAULT_DESCENDANT_LIMIT}

The maximum allowed number of transactions in a package including the entry and its descendants.

Definition at line 24 of file mempool_limits.h.

◆ descendant_size_vbytes

int64_t kernel::MemPoolLimits::descendant_size_vbytes {DEFAULT_DESCENDANT_SIZE_LIMIT_KVB * 1'000}

The maximum allowed size in virtual bytes of an entry and its descendants within a package.

Definition at line 26 of file mempool_limits.h.


The documentation for this struct was generated from the following file: