Skip to content

Commit 10e85d4

Browse files
committed
Remove ValidationState's constructor
1 parent 0aed17e commit 10e85d4

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/consensus/validation.h

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ class ValidationState {
8080
MODE_VALID, //!< everything ok
8181
MODE_INVALID, //!< network rule violation (DoS value may be set)
8282
MODE_ERROR, //!< run-time error
83-
} m_mode;
83+
} m_mode{MODE_VALID};
8484
std::string m_reject_reason;
8585
std::string m_debug_message;
8686
protected:
@@ -95,7 +95,6 @@ class ValidationState {
9595
// ValidationState is abstract. Have a pure virtual destructor.
9696
virtual ~ValidationState() = 0;
9797

98-
ValidationState() : m_mode(MODE_VALID) {}
9998
bool Error(const std::string& reject_reason)
10099
{
101100
if (m_mode == MODE_VALID)

0 commit comments

Comments
 (0)