mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-02-03 09:56:38 -05:00
Remove ValidationState's constructor
This commit is contained in:
parent
0aed17ef28
commit
10e85d4adc
1 changed files with 1 additions and 2 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Reference in a new issue