MCPcopy Create free account
hub / github.com/ElementsProject/elements / Error

Method Error

src/consensus/validation.h:113–119  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

111 return false;
112 }
113 bool Error(const std::string& reject_reason)
114 {
115 if (m_mode == ModeState::M_VALID)
116 m_reject_reason = reject_reason;
117 m_mode = ModeState::M_ERROR;
118 return false;
119 }
120 bool IsValid() const { return m_mode == ModeState::M_VALID; }
121 bool IsInvalid() const { return m_mode == ModeState::M_INVALID; }
122 bool IsError() const { return m_mode == ModeState::M_ERROR; }

Callers 3

AbortNodeFunction · 0.80
AcceptBlockMethod · 0.80
FUZZ_TARGET_INITFunction · 0.80

Calls

no outgoing calls

Tested by 1

FUZZ_TARGET_INITFunction · 0.64