Bitcoin ABC 0.26.3
P2P Digital Currency
|
Template for capturing information about block/transaction validation. More...
#include <validation.h>
Public Member Functions | |
bool | Invalid (Result result, const std::string &reject_reason="", const std::string &debug_message="") |
bool | Error (const std::string &reject_reason) |
bool | IsValid () const |
bool | IsInvalid () const |
bool | IsError () const |
Result | GetResult () const |
std::string | GetRejectReason () const |
std::string | GetDebugMessage () const |
std::string | ToString () const |
Private Types | |
enum class | ModeState { M_VALID , M_INVALID , M_ERROR } |
Private Attributes | |
enum ValidationState::ModeState | M_VALID |
Result | m_result {} |
std::string | m_reject_reason |
std::string | m_debug_message |
Template for capturing information about block/transaction validation.
This is instantiated by TxValidationState and BlockValidationState for validation information on transactions and blocks respectively.
Definition at line 89 of file validation.h.
|
strongprivate |
Enumerator | |
---|---|
M_VALID | everything ok |
M_INVALID | network rule violation (DoS value may be set) |
M_ERROR | run-time error |
Definition at line 91 of file validation.h.
|
inline |
Definition at line 112 of file validation.h.
|
inline |
|
inline |
|
inline |
|
inline |
Definition at line 101 of file validation.h.
|
inline |
Definition at line 121 of file validation.h.
|
inline |
Definition at line 120 of file validation.h.
|
inline |
Definition at line 119 of file validation.h.
|
inline |
Definition at line 125 of file validation.h.
|
private |
Definition at line 98 of file validation.h.
|
private |
Definition at line 97 of file validation.h.
|
private |
Definition at line 96 of file validation.h.
|
private |