Changeset View
Changeset View
Standalone View
Standalone View
src/consensus/validation.h
Show First 20 Lines • Show All 74 Lines • ▼ Show 20 Lines | bool IsInvalid(int &nDoSOut) const { | ||||
nDoSOut = nDoS; | nDoSOut = nDoS; | ||||
return true; | return true; | ||||
} | } | ||||
return false; | return false; | ||||
} | } | ||||
bool CorruptionPossible() const { return corruptionPossible; } | bool CorruptionPossible() const { return corruptionPossible; } | ||||
void SetCorruptionPossible() { corruptionPossible = true; } | void SetCorruptionPossible() { corruptionPossible = true; } | ||||
int GetDoS() const { return nDoS; } | |||||
unsigned int GetRejectCode() const { return chRejectCode; } | unsigned int GetRejectCode() const { return chRejectCode; } | ||||
std::string GetRejectReason() const { return strRejectReason; } | std::string GetRejectReason() const { return strRejectReason; } | ||||
std::string GetDebugMessage() const { return strDebugMessage; } | std::string GetDebugMessage() const { return strDebugMessage; } | ||||
}; | }; | ||||
#endif // BITCOIN_CONSENSUS_VALIDATION_H | #endif // BITCOIN_CONSENSUS_VALIDATION_H |