Dash Core Source Documentation (0.16.0.1)
Find detailed information regarding the Dash Core source code.
Go to the documentation of this file. 6 #ifndef BITCOIN_CONSENSUS_VALIDATION_H 7 #define BITCOIN_CONSENSUS_VALIDATION_H 36 bool DoS(
int level,
bool ret =
false,
37 unsigned int chRejectCodeIn=0,
const std::string &strRejectReasonIn=
"",
38 bool corruptionIn=
false,
39 const std::string &strDebugMessageIn=
"") {
51 unsigned int _chRejectCode=0,
const std::string &_strRejectReason=
"",
52 const std::string &_strDebugMessage=
"") {
53 return DoS(0, ret, _chRejectCode, _strRejectReason,
false, _strDebugMessage);
55 bool Error(
const std::string& strRejectReasonIn) {
85 #endif // BITCOIN_CONSENSUS_VALIDATION_H unsigned int chRejectCode
static const unsigned char REJECT_INSUFFICIENTFEE
enum CValidationState::mode_state mode
network rule violation (DoS value may be set)
bool DoS(int level, bool ret=false, unsigned int chRejectCodeIn=0, const std::string &strRejectReasonIn="", bool corruptionIn=false, const std::string &strDebugMessageIn="")
bool IsInvalid(int &nDoSOut) const
static const unsigned char REJECT_INVALID
static const unsigned char REJECT_OBSOLETE
static const unsigned char REJECT_CHECKPOINT
static const unsigned char REJECT_NONSTANDARD
std::string GetRejectReason() const
static const unsigned char REJECT_DUPLICATE
bool Error(const std::string &strRejectReasonIn)
Capture information about block/transaction validation.
std::string GetDebugMessage() const
unsigned int GetRejectCode() const
bool CorruptionPossible() const
std::string strRejectReason
std::string strDebugMessage
static const unsigned char REJECT_MALFORMED
"reject" message codes
bool Invalid(bool ret=false, unsigned int _chRejectCode=0, const std::string &_strRejectReason="", const std::string &_strDebugMessage="")