Bitcoin Core  22.99.0
P2P Digital Currency
Public Types | Static Public Member Functions | Public Attributes | Private Member Functions | List of all members
MempoolAcceptResult Struct Reference

Validation result for a single transaction mempool acceptance. More...

#include <validation.h>

Collaboration diagram for MempoolAcceptResult:
[legend]

Public Types

enum  ResultType { ResultType::VALID, ResultType::INVALID }
 Used to indicate the results of mempool validation. More...
 

Static Public Member Functions

static MempoolAcceptResult Failure (TxValidationState state)
 
static MempoolAcceptResult Success (std::list< CTransactionRef > &&replaced_txns, CAmount fees)
 

Public Attributes

const ResultType m_result_type
 
const TxValidationState m_state
 
const std::optional< std::list< CTransactionRef > > m_replaced_transactions
 Mempool transactions replaced by the tx per BIP 125 rules. More...
 
const std::optional< CAmountm_base_fees
 Raw base fees in satoshis. More...
 

Private Member Functions

 MempoolAcceptResult (TxValidationState state)
 Constructor for failure case. More...
 
 MempoolAcceptResult (std::list< CTransactionRef > &&replaced_txns, CAmount fees)
 Constructor for success case. More...
 

Detailed Description

Validation result for a single transaction mempool acceptance.

Definition at line 157 of file validation.h.

Member Enumeration Documentation

◆ ResultType

Used to indicate the results of mempool validation.

Enumerator
VALID 
INVALID 

Fully validated, valid.

Definition at line 159 of file validation.h.

Constructor & Destructor Documentation

◆ MempoolAcceptResult() [1/2]

MempoolAcceptResult::MempoolAcceptResult ( TxValidationState  state)
inlineexplicitprivate

Constructor for failure case.

Definition at line 182 of file validation.h.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ MempoolAcceptResult() [2/2]

MempoolAcceptResult::MempoolAcceptResult ( std::list< CTransactionRef > &&  replaced_txns,
CAmount  fees 
)
inlineexplicitprivate

Constructor for success case.

Definition at line 188 of file validation.h.

Member Function Documentation

◆ Failure()

static MempoolAcceptResult MempoolAcceptResult::Failure ( TxValidationState  state)
inlinestatic

Definition at line 171 of file validation.h.

Here is the call graph for this function:

◆ Success()

static MempoolAcceptResult MempoolAcceptResult::Success ( std::list< CTransactionRef > &&  replaced_txns,
CAmount  fees 
)
inlinestatic

Definition at line 175 of file validation.h.

Here is the call graph for this function:

Member Data Documentation

◆ m_base_fees

const std::optional<CAmount> MempoolAcceptResult::m_base_fees

Raw base fees in satoshis.

Definition at line 170 of file validation.h.

◆ m_replaced_transactions

const std::optional<std::list<CTransactionRef> > MempoolAcceptResult::m_replaced_transactions

Mempool transactions replaced by the tx per BIP 125 rules.

Definition at line 168 of file validation.h.

◆ m_result_type

const ResultType MempoolAcceptResult::m_result_type

Definition at line 163 of file validation.h.

◆ m_state

const TxValidationState MempoolAcceptResult::m_state

Definition at line 164 of file validation.h.


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