We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0aed17e commit 10e85d4Copy full SHA for 10e85d4
src/consensus/validation.h
@@ -80,7 +80,7 @@ class ValidationState {
80
MODE_VALID, //!< everything ok
81
MODE_INVALID, //!< network rule violation (DoS value may be set)
82
MODE_ERROR, //!< run-time error
83
- } m_mode;
+ } m_mode{MODE_VALID};
84
std::string m_reject_reason;
85
std::string m_debug_message;
86
protected:
@@ -95,7 +95,6 @@ class ValidationState {
95
// ValidationState is abstract. Have a pure virtual destructor.
96
virtual ~ValidationState() = 0;
97
98
- ValidationState() : m_mode(MODE_VALID) {}
99
bool Error(const std::string& reject_reason)
100
{
101
if (m_mode == MODE_VALID)
0 commit comments