diff options
author | Jeffrey Czyz <jkczyz@gmail.com> | 2019-11-11 15:15:16 -0800 |
---|---|---|
committer | Jeffrey Czyz <jkczyz@gmail.com> | 2020-02-27 17:59:21 -0800 |
commit | 10e85d4adc9b7dbbda63e00195e0a962f51e4d2c (patch) | |
tree | 347b2e7b30d363acd981874ee0dc5ebdbe0de9f7 /src/consensus/validation.h | |
parent | 0aed17ef2892478c28cd660e53223c6dd1dc0187 (diff) |
Remove ValidationState's constructor
Diffstat (limited to 'src/consensus/validation.h')
-rw-r--r-- | src/consensus/validation.h | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/consensus/validation.h b/src/consensus/validation.h index 4ead26a416..da7a043dc5 100644 --- a/src/consensus/validation.h +++ b/src/consensus/validation.h @@ -80,7 +80,7 @@ private: MODE_VALID, //!< everything ok MODE_INVALID, //!< network rule violation (DoS value may be set) MODE_ERROR, //!< run-time error - } m_mode; + } m_mode{MODE_VALID}; std::string m_reject_reason; std::string m_debug_message; protected: @@ -95,7 +95,6 @@ public: // ValidationState is abstract. Have a pure virtual destructor. virtual ~ValidationState() = 0; - ValidationState() : m_mode(MODE_VALID) {} bool Error(const std::string& reject_reason) { if (m_mode == MODE_VALID) |