Bitcoin Core 28.99.0
P2P Digital Currency
Public Member Functions | Public Attributes | List of all members
PackageMempoolAcceptResult Struct Reference

Validation result for package mempool acceptance. More...

#include <validation.h>

Collaboration diagram for PackageMempoolAcceptResult:
[legend]

Public Member Functions

 PackageMempoolAcceptResult (PackageValidationState state, std::map< uint256, MempoolAcceptResult > &&results)
 
 PackageMempoolAcceptResult (PackageValidationState state, CFeeRate feerate, std::map< uint256, MempoolAcceptResult > &&results)
 
 PackageMempoolAcceptResult (const uint256 &wtxid, const MempoolAcceptResult &result)
 Constructor to create a PackageMempoolAcceptResult from a single MempoolAcceptResult. More...
 

Public Attributes

PackageValidationState m_state
 
std::map< uint256, MempoolAcceptResultm_tx_results
 Map from wtxid to finished MempoolAcceptResults. More...
 

Detailed Description

Validation result for package mempool acceptance.

Definition at line 228 of file validation.h.

Constructor & Destructor Documentation

◆ PackageMempoolAcceptResult() [1/3]

PackageMempoolAcceptResult::PackageMempoolAcceptResult ( PackageValidationState  state,
std::map< uint256, MempoolAcceptResult > &&  results 
)
inlineexplicit

Definition at line 239 of file validation.h.

◆ PackageMempoolAcceptResult() [2/3]

PackageMempoolAcceptResult::PackageMempoolAcceptResult ( PackageValidationState  state,
CFeeRate  feerate,
std::map< uint256, MempoolAcceptResult > &&  results 
)
inlineexplicit

Definition at line 243 of file validation.h.

◆ PackageMempoolAcceptResult() [3/3]

PackageMempoolAcceptResult::PackageMempoolAcceptResult ( const uint256 wtxid,
const MempoolAcceptResult result 
)
inlineexplicit

Constructor to create a PackageMempoolAcceptResult from a single MempoolAcceptResult.

Definition at line 248 of file validation.h.

Member Data Documentation

◆ m_state

PackageValidationState PackageMempoolAcceptResult::m_state

Definition at line 230 of file validation.h.

◆ m_tx_results

std::map<uint256, MempoolAcceptResult> PackageMempoolAcceptResult::m_tx_results

Map from wtxid to finished MempoolAcceptResults.

The client is responsible for keeping track of the transaction objects themselves. If a result is not present, it means validation was unfinished for that transaction. If there was a package-wide error (see result in m_state), m_tx_results will be empty.

Definition at line 237 of file validation.h.


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