![]() |
Bitcoin Core
22.99.0
P2P Digital Currency
|
Validation result for a single transaction mempool acceptance. More...
#include <validation.h>
Public Types | |
enum | ResultType { ResultType::VALID, ResultType::INVALID, ResultType::MEMPOOL_ENTRY, ResultType::DIFFERENT_WITNESS } |
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, int64_t vsize, CAmount fees) |
static MempoolAcceptResult | MempoolTx (int64_t vsize, CAmount fees) |
static MempoolAcceptResult | MempoolTxDifferentWitness (const uint256 &other_wtxid) |
Public Attributes | |
const ResultType | m_result_type |
Result type. More... | |
const TxValidationState | m_state |
Contains information about why the transaction failed. More... | |
const std::optional< std::list< CTransactionRef > > | m_replaced_transactions |
Mempool transactions replaced by the tx per BIP 125 rules. More... | |
const std::optional< int64_t > | m_vsize |
Virtual size as used by the mempool, calculated using serialized size and sigops. More... | |
const std::optional< CAmount > | m_base_fees |
Raw base fees in satoshis. More... | |
const std::optional< uint256 > | m_other_wtxid |
The wtxid of the transaction in the mempool which has the same txid but different witness. More... | |
Private Member Functions | |
MempoolAcceptResult (TxValidationState state) | |
Constructor for failure case. More... | |
MempoolAcceptResult (std::list< CTransactionRef > &&replaced_txns, int64_t vsize, CAmount fees) | |
Constructor for success case. More... | |
MempoolAcceptResult (int64_t vsize, CAmount fees) | |
Constructor for already-in-mempool case. More... | |
MempoolAcceptResult (const uint256 &other_wtxid) | |
Constructor for witness-swapped case. More... | |
Validation result for a single transaction mempool acceptance.
Definition at line 160 of file validation.h.
|
strong |
Used to indicate the results of mempool validation.
Enumerator | |
---|---|
VALID | |
INVALID |
|
MEMPOOL_ENTRY |
|
DIFFERENT_WITNESS |
|
Definition at line 162 of file validation.h.
|
inlineexplicitprivate |
Constructor for failure case.
Definition at line 205 of file validation.h.
|
inlineexplicitprivate |
Constructor for success case.
Definition at line 211 of file validation.h.
|
inlineexplicitprivate |
Constructor for already-in-mempool case.
It wouldn't replace any transactions.
Definition at line 216 of file validation.h.
|
inlineexplicitprivate |
Constructor for witness-swapped case.
Definition at line 220 of file validation.h.
|
inlinestatic |
Definition at line 186 of file validation.h.
|
inlinestatic |
|
inlinestatic |
|
inlinestatic |
const std::optional<CAmount> MempoolAcceptResult::m_base_fees |
Raw base fees in satoshis.
Definition at line 180 of file validation.h.
const std::optional<uint256> MempoolAcceptResult::m_other_wtxid |
The wtxid of the transaction in the mempool which has the same txid but different witness.
Definition at line 184 of file validation.h.
const std::optional<std::list<CTransactionRef> > MempoolAcceptResult::m_replaced_transactions |
Mempool transactions replaced by the tx per BIP 125 rules.
Definition at line 176 of file validation.h.
const ResultType MempoolAcceptResult::m_result_type |
const TxValidationState MempoolAcceptResult::m_state |
Contains information about why the transaction failed.
Definition at line 172 of file validation.h.
const std::optional<int64_t> MempoolAcceptResult::m_vsize |
Virtual size as used by the mempool, calculated using serialized size and sigops.
Definition at line 178 of file validation.h.