Bitcoin Core  27.99.0
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}
 
int64_t max_size_bytes {DEFAULT_MAX_MEMPOOL_SIZE_MB * 1'000'000}
 
std::chrono::seconds expiry {std::chrono::hours{DEFAULT_MEMPOOL_EXPIRY_HOURS}}
 
CFeeRate incremental_relay_feerate {DEFAULT_INCREMENTAL_RELAY_FEE}
 
CFeeRate min_relay_feerate {DEFAULT_MIN_RELAY_TX_FEE}
 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 {DEFAULT_ACCEPT_DATACARRIER ? std::optional{MAX_OP_RETURN_RELAY} : std::nullopt}
 A data carrying output is an unspendable output containing data. More...
 
bool permit_bare_multisig {DEFAULT_PERMIT_BAREMULTISIG}
 
bool require_standard {true}
 
bool full_rbf {DEFAULT_MEMPOOL_FULL_RBF}
 
bool persist_v1_dat {DEFAULT_PERSIST_V1_DAT}
 
MemPoolLimits limits {}
 
ValidationSignalssignals {nullptr}
 

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 39 of file mempool_options.h.

Member Data Documentation

◆ check_ratio

int kernel::MemPoolOptions::check_ratio {0}

Definition at line 41 of file mempool_options.h.

◆ dust_relay_feerate

CFeeRate kernel::MemPoolOptions::dust_relay_feerate {DUST_RELAY_TX_FEE}

Definition at line 47 of file mempool_options.h.

◆ expiry

std::chrono::seconds kernel::MemPoolOptions::expiry {std::chrono::hours{DEFAULT_MEMPOOL_EXPIRY_HOURS}}

Definition at line 43 of file mempool_options.h.

◆ full_rbf

bool kernel::MemPoolOptions::full_rbf {DEFAULT_MEMPOOL_FULL_RBF}

Definition at line 58 of file mempool_options.h.

◆ incremental_relay_feerate

CFeeRate kernel::MemPoolOptions::incremental_relay_feerate {DEFAULT_INCREMENTAL_RELAY_FEE}

Definition at line 44 of file mempool_options.h.

◆ limits

MemPoolLimits kernel::MemPoolOptions::limits {}

Definition at line 60 of file mempool_options.h.

◆ max_datacarrier_bytes

std::optional<unsigned> kernel::MemPoolOptions::max_datacarrier_bytes {DEFAULT_ACCEPT_DATACARRIER ? std::optional{MAX_OP_RETURN_RELAY} : std::nullopt}

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 55 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 42 of file mempool_options.h.

◆ min_relay_feerate

CFeeRate kernel::MemPoolOptions::min_relay_feerate {DEFAULT_MIN_RELAY_TX_FEE}

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

Definition at line 46 of file mempool_options.h.

◆ permit_bare_multisig

bool kernel::MemPoolOptions::permit_bare_multisig {DEFAULT_PERMIT_BAREMULTISIG}

Definition at line 56 of file mempool_options.h.

◆ persist_v1_dat

bool kernel::MemPoolOptions::persist_v1_dat {DEFAULT_PERSIST_V1_DAT}

Definition at line 59 of file mempool_options.h.

◆ require_standard

bool kernel::MemPoolOptions::require_standard {true}

Definition at line 57 of file mempool_options.h.

◆ signals

ValidationSignals* kernel::MemPoolOptions::signals {nullptr}

Definition at line 62 of file mempool_options.h.


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