Bitcoin ABC  0.29.2
P2P Digital Currency
Public Attributes | List of all members
kernel::MemPoolOptions Struct Reference

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

#include <mempool_options.h>

Collaboration diagram for kernel::MemPoolOptions:
[legend]

Public Attributes

int check_ratio {0}
 The ratio used to determine how often sanity checks will run. More...
 
int64_t max_size_bytes {DEFAULT_MAX_MEMPOOL_SIZE_MB * 1'000'000}
 
std::chrono::seconds expiry
 
CFeeRate min_relay_feerate {DEFAULT_MIN_RELAY_TX_FEE_PER_KB}
 A fee rate smaller than this is considered zero fee (for relaying, mining and transaction creation) More...
 
CFeeRate dust_relay_feerate {DUST_RELAY_TX_FEE}
 
std::optional< unsigned > max_datacarrier_bytes
 A data carrying output is an unspendable output containing data. More...
 
bool permit_bare_multisig {DEFAULT_PERMIT_BAREMULTISIG}
 
bool require_standard {true}
 

Detailed Description

Options struct containing options for constructing 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::Options.

Definition at line 28 of file mempool_options.h.

Member Data Documentation

◆ check_ratio

int kernel::MemPoolOptions::check_ratio {0}

The ratio used to determine how often sanity checks will run.

Definition at line 30 of file mempool_options.h.

◆ dust_relay_feerate

CFeeRate kernel::MemPoolOptions::dust_relay_feerate {DUST_RELAY_TX_FEE}

Definition at line 39 of file mempool_options.h.

◆ expiry

std::chrono::seconds kernel::MemPoolOptions::expiry
Initial value:
{
std::chrono::hours{DEFAULT_MEMPOOL_EXPIRY_HOURS}}
static constexpr unsigned int DEFAULT_MEMPOOL_EXPIRY_HOURS
Default for -mempoolexpiry, expiration time for mempool transactions in hours.

Definition at line 32 of file mempool_options.h.

◆ max_datacarrier_bytes

std::optional<unsigned> kernel::MemPoolOptions::max_datacarrier_bytes
Initial value:
{
: std::nullopt}
static const unsigned int MAX_OP_RETURN_RELAY
Default setting for nMaxDatacarrierBytes.
Definition: standard.h:36
static const bool DEFAULT_ACCEPT_DATACARRIER
Definition: standard.h:17

A data carrying output is an unspendable output containing data.

The script type is designated as TxoutType::NULL_DATA.

Maximum size of TxoutType::NULL_DATA scripts that this node considers standard. If nullopt, any size is nonstandard.

Definition at line 48 of file mempool_options.h.

◆ max_size_bytes

int64_t kernel::MemPoolOptions::max_size_bytes {DEFAULT_MAX_MEMPOOL_SIZE_MB * 1'000'000}

Definition at line 31 of file mempool_options.h.

◆ min_relay_feerate

CFeeRate kernel::MemPoolOptions::min_relay_feerate {DEFAULT_MIN_RELAY_TX_FEE_PER_KB}

A fee rate smaller than this is considered zero fee (for relaying, mining and transaction creation)

Definition at line 38 of file mempool_options.h.

◆ permit_bare_multisig

bool kernel::MemPoolOptions::permit_bare_multisig {DEFAULT_PERMIT_BAREMULTISIG}

Definition at line 51 of file mempool_options.h.

◆ require_standard

bool kernel::MemPoolOptions::require_standard {true}

Definition at line 52 of file mempool_options.h.


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