![]() |
Bitcoin ABC
0.26.3
P2P Digital Currency
|
Validation result for a single transaction mempool acceptance. More...
#include <validation.h>
Public Types | |
enum class | ResultType { VALID , INVALID , MEMPOOL_ENTRY } |
Used to indicate the results of mempool validation. More... | |
Static Public Member Functions | |
static MempoolAcceptResult | Failure (TxValidationState state) |
static MempoolAcceptResult | Success (int64_t vsize, Amount fees) |
Constructor for success case. More... | |
static MempoolAcceptResult | MempoolTx (int64_t vsize, Amount fees) |
Constructor for already-in-mempool case. More... | |
Public Attributes | |
const ResultType | m_result_type |
const TxValidationState | m_state |
const std::optional< int64_t > | m_vsize |
Virtual size as used by the mempool, calculated using serialized size and sigchecks. More... | |
const std::optional< Amount > | m_base_fees |
Raw base fees in satoshis. More... | |
Private Member Functions | |
MempoolAcceptResult (TxValidationState state) | |
Constructor for failure case. More... | |
MempoolAcceptResult (ResultType result_type, int64_t vsize, Amount fees) | |
Generic constructor for success cases. More... | |
Validation result for a single transaction mempool acceptance.
Definition at line 220 of file validation.h.
|
strong |
Used to indicate the results of mempool validation.
Enumerator | |
---|---|
VALID | Fully validated, valid. |
INVALID | Invalid. |
MEMPOOL_ENTRY | Valid, transaction was already in the mempool. |
Definition at line 222 of file validation.h.
|
inlineexplicitprivate |
Constructor for failure case.
Definition at line 263 of file validation.h.
|
inlineexplicitprivate |
Generic constructor for success cases.
Definition at line 271 of file validation.h.
|
inlinestatic |
Definition at line 242 of file validation.h.
|
inlinestatic |
Constructor for already-in-mempool case.
It wouldn't replace any transactions.
Definition at line 255 of file validation.h.
|
inlinestatic |
Constructor for success case.
Definition at line 247 of file validation.h.
const std::optional<Amount> MempoolAcceptResult::m_base_fees |
Raw base fees in satoshis.
Definition at line 241 of file validation.h.
const ResultType MempoolAcceptResult::m_result_type |
Definition at line 230 of file validation.h.
const TxValidationState MempoolAcceptResult::m_state |
Definition at line 231 of file validation.h.
const std::optional<int64_t> MempoolAcceptResult::m_vsize |
Virtual size as used by the mempool, calculated using serialized size and sigchecks.
Definition at line 239 of file validation.h.