Capture information about block/transaction validation.
More...
#include <validation.h>
Capture information about block/transaction validation.
Definition at line 26 of file validation.h.
◆ mode_state
| Enumerator |
|---|
| MODE_VALID | everything ok
|
| MODE_INVALID | network rule violation (DoS value may be set)
|
| MODE_ERROR | run-time error
|
Definition at line 28 of file validation.h.
◆ CValidationState()
| CValidationState::CValidationState |
( |
| ) |
|
|
inline |
◆ CorruptionPossible()
| bool CValidationState::CorruptionPossible |
( |
| ) |
const |
|
inline |
◆ DoS()
| bool CValidationState::DoS |
( |
int |
level, |
|
|
bool |
ret = false, |
|
|
unsigned int |
chRejectCodeIn = 0, |
|
|
const std::string & |
strRejectReasonIn = "", |
|
|
bool |
corruptionIn = false, |
|
|
const std::string & |
strDebugMessageIn = "" |
|
) |
| |
|
inline |
◆ Error()
| bool CValidationState::Error |
( |
const std::string & |
strRejectReasonIn | ) |
|
|
inline |
◆ GetDebugMessage()
| std::string CValidationState::GetDebugMessage |
( |
| ) |
const |
|
inline |
◆ GetRejectCode()
| unsigned int CValidationState::GetRejectCode |
( |
| ) |
const |
|
inline |
◆ GetRejectReason()
| std::string CValidationState::GetRejectReason |
( |
| ) |
const |
|
inline |
◆ Invalid()
| bool CValidationState::Invalid |
( |
bool |
ret = false, |
|
|
unsigned int |
_chRejectCode = 0, |
|
|
const std::string & |
_strRejectReason = "", |
|
|
const std::string & |
_strDebugMessage = "" |
|
) |
| |
|
inline |
◆ IsError()
| bool CValidationState::IsError |
( |
| ) |
const |
|
inline |
◆ IsInvalid() [1/2]
| bool CValidationState::IsInvalid |
( |
| ) |
const |
|
inline |
◆ IsInvalid() [2/2]
| bool CValidationState::IsInvalid |
( |
int & |
nDoSOut | ) |
const |
|
inline |
◆ IsValid()
| bool CValidationState::IsValid |
( |
| ) |
const |
|
inline |
◆ SetCorruptionPossible()
| void CValidationState::SetCorruptionPossible |
( |
| ) |
|
|
inline |
◆ chRejectCode
| unsigned int CValidationState::chRejectCode |
|
private |
◆ corruptionPossible
| bool CValidationState::corruptionPossible |
|
private |
◆ mode
◆ nDoS
| int CValidationState::nDoS |
|
private |
◆ strDebugMessage
| std::string CValidationState::strDebugMessage |
|
private |
◆ strRejectReason
| std::string CValidationState::strRejectReason |
|
private |
The documentation for this class was generated from the following file: