MCPcopy Create free account
hub / github.com/bitcoin/bitcoin / Error

Method Error

src/consensus/validation.h:98–104  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

96 return false;
97 }
98 bool Error(const std::string& reject_reason)
99 {
100 if (m_mode == ModeState::M_VALID)
101 m_reject_reason = reject_reason;
102 m_mode = ModeState::M_ERROR;
103 return false;
104 }
105 bool IsValid() const { return m_mode == ModeState::M_VALID; }
106 bool IsInvalid() const { return m_mode == ModeState::M_INVALID; }
107 bool IsError() const { return m_mode == ModeState::M_ERROR; }

Callers 3

FatalErrorFunction · 0.80
AcceptBlockMethod · 0.80
block.cppFile · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected