Bitcoin Core  21.99.0
P2P Digital Currency
Public Types | Public Member Functions | Public Attributes | 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, including the possibility of unfinished validation. More...
 

Public Member Functions

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

Public Attributes

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

Detailed Description

Validation result for a single transaction mempool acceptance.

Definition at line 191 of file validation.h.

Member Enumeration Documentation

◆ ResultType

Used to indicate the results of mempool validation, including the possibility of unfinished validation.

Enumerator
VALID 
INVALID 

Fully validated, valid.

Definition at line 195 of file validation.h.

Constructor & Destructor Documentation

◆ MempoolAcceptResult() [1/2]

MempoolAcceptResult::MempoolAcceptResult ( TxValidationState  state)
inlineexplicit

Constructor for failure case.

Definition at line 209 of file validation.h.

Here is the call graph for this function:

◆ MempoolAcceptResult() [2/2]

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

Constructor for success case.

Definition at line 216 of file validation.h.

Member Data Documentation

◆ m_base_fees

std::optional<CAmount> MempoolAcceptResult::m_base_fees

Raw base fees.

Definition at line 206 of file validation.h.

◆ m_replaced_transactions

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

Mempool transactions replaced by the tx per BIP 125 rules.

Definition at line 204 of file validation.h.

◆ m_result_type

ResultType MempoolAcceptResult::m_result_type

Definition at line 199 of file validation.h.

◆ m_state

TxValidationState MempoolAcceptResult::m_state

Definition at line 200 of file validation.h.


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