Template for capturing information about block/transaction validation.
More...
#include <validation.h>
template<typename Result>
class ValidationState< Result >
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 86 of file validation.h.
◆ mode_state
template<typename Result>
Enumerator |
---|
MODE_VALID | everything ok
|
MODE_INVALID | network rule violation (DoS value may be set)
|
MODE_ERROR | run-time error
|
Definition at line 88 of file validation.h.
◆ Error()
template<typename Result>
◆ GetDebugMessage()
template<typename Result>
◆ GetRejectReason()
template<typename Result>
◆ GetResult()
template<typename Result>
◆ Invalid()
template<typename Result>
bool ValidationState< Result >::Invalid |
( |
Result |
result, |
|
|
const std::string & |
reject_reason = "" , |
|
|
const std::string & |
debug_message = "" |
|
) |
| |
|
inline |
◆ IsError()
template<typename Result>
◆ IsInvalid()
template<typename Result>
◆ IsValid()
template<typename Result>
◆ ToString()
template<typename Result>
◆ m_debug_message
template<typename Result>
◆ m_reject_reason
template<typename Result>
◆ m_result
template<typename Result>
◆ MODE_VALID
template<typename Result>
The documentation for this class was generated from the following file: