Raven Core
3.0.0
P2P Digital Currency
|
RVN END. More...
#include <validation.h>
Public Member Functions | |
CValidationState () | |
bool | DoS (int level, bool ret=false, unsigned int chRejectCodeIn=0, const std::string &strRejectReasonIn="", bool corruptionIn=false, const std::string &strDebugMessageIn="") |
bool | Invalid (bool ret=false, unsigned int _chRejectCode=0, const std::string &_strRejectReason="", const std::string &_strDebugMessage="") |
bool | Error (const std::string &strRejectReasonIn) |
bool | IsValid () const |
bool | IsInvalid () const |
bool | IsError () const |
bool | IsInvalid (int &nDoSOut) const |
bool | CorruptionPossible () const |
void | SetCorruptionPossible () |
unsigned int | GetRejectCode () const |
std::string | GetRejectReason () const |
std::string | GetDebugMessage () const |
Private Types | |
enum | mode_state { MODE_VALID, MODE_INVALID, MODE_ERROR } |
Private Attributes | |
enum CValidationState::mode_state | mode |
int | nDoS |
std::string | strRejectReason |
unsigned int | chRejectCode |
bool | corruptionPossible |
std::string | strDebugMessage |
RVN END.
Capture information about block/transaction validation
Definition at line 30 of file validation.h.
|
private |
Enumerator | |
---|---|
MODE_VALID | everything ok |
MODE_INVALID | network rule violation (DoS value may be set) |
MODE_ERROR | run-time error |
Definition at line 32 of file validation.h.
|
inline |
Definition at line 43 of file validation.h.
|
inline |
|
inline |
|
inline |
Definition at line 63 of file validation.h.
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
Definition at line 75 of file validation.h.
|
inline |
|
inline |
|
inline |
|
inline |
Definition at line 88 of file validation.h.
|
private |
Definition at line 39 of file validation.h.
|
private |
Definition at line 40 of file validation.h.
|
private |
|
private |
Definition at line 37 of file validation.h.
|
private |
Definition at line 41 of file validation.h.
|
private |
Definition at line 38 of file validation.h.