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