![]() |
Dash Core
0.12.2.1
P2P Digital Currency
|
#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 |
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 |
Capture information about block/transaction validation
Definition at line 22 of file validation.h.
|
private |
Enumerator | |
---|---|
MODE_VALID | |
MODE_INVALID | everything ok |
MODE_ERROR | network rule violation (DoS value may be set) |
Definition at line 24 of file validation.h.
|
inline |
Definition at line 35 of file validation.h.
|
inline |
Definition at line 77 of file validation.h.
Referenced by AcceptBlock(), ActivateBestChainStep(), and InvalidBlockFound().
|
inline |
Definition at line 36 of file validation.h.
Referenced by AcceptBlockHeader(), AcceptToMemoryPoolWorker(), CheckBlock(), CheckBlockHeader(), CheckIndexAgainstCheckpoint(), CheckInputs(), CheckTransaction(), Consensus::CheckTxInputs(), ConnectBlock(), ContextualCheckBlock(), ContextualCheckBlockHeader(), ContextualCheckTransaction(), and Invalid().
|
inline |
Definition at line 55 of file validation.h.
Referenced by FindBlockPos(), FindUndoPos(), and FlushStateToDisk().
|
inline |
Definition at line 82 of file validation.h.
Referenced by FormatStateMessage().
|
inline |
Definition at line 80 of file validation.h.
Referenced by PeerLogicValidation::BlockChecked(), FormatStateMessage(), ProcessMessage(), and sendrawtransaction().
|
inline |
Definition at line 81 of file validation.h.
Referenced by AcceptBlockHeader(), AcceptToMemoryPool(), BIP22ValidationResult(), PeerLogicValidation::BlockChecked(), FormatStateMessage(), invalidateblock(), ProcessMessage(), reconsiderblock(), sendrawtransaction(), and TestBlockValidity().
|
inline |
Definition at line 50 of file validation.h.
Referenced by AcceptBlockHeader(), AcceptToMemoryPoolWorker(), CheckBlockHeader(), CheckInputs(), Consensus::CheckTxInputs(), and ContextualCheckBlockHeader().
|
inline |
Definition at line 67 of file validation.h.
Referenced by BIP22ValidationResult(), and LoadExternalBlockFile().
|
inline |
Definition at line 64 of file validation.h.
Referenced by AcceptBlock(), ActivateBestChainStep(), BIP22ValidationResult(), PeerLogicValidation::BlockChecked(), ConnectTip(), IsInvalid(), ProcessMessage(), and sendrawtransaction().
|
inline |
Definition at line 70 of file validation.h.
|
inline |
Definition at line 61 of file validation.h.
Referenced by BIP22ValidationResult(), DisconnectBlocks(), invalidateblock(), ReadKeyValue(), reconsiderblock(), and TestBlockValidity().
|
private |
Definition at line 31 of file validation.h.
Referenced by DoS(), and GetRejectCode().
|
private |
Definition at line 32 of file validation.h.
Referenced by CorruptionPossible(), and DoS().
|
private |
Referenced by DoS(), Error(), IsError(), IsInvalid(), and IsValid().
|
private |
Definition at line 29 of file validation.h.
Referenced by DoS(), and IsInvalid().
|
private |
Definition at line 33 of file validation.h.
Referenced by DoS(), and GetDebugMessage().
|
private |
Definition at line 30 of file validation.h.
Referenced by DoS(), Error(), and GetRejectReason().