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

Method Invalid

src/consensus/validation.h:103–112  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

101
102public:
103 bool Invalid(Result result,
104 const std::string& reject_reason = "",
105 const std::string& debug_message = "")
106 {
107 m_result = result;
108 m_reject_reason = reject_reason;
109 m_debug_message = debug_message;
110 if (m_mode != ModeState::M_ERROR) m_mode = ModeState::M_INVALID;
111 return false;
112 }
113 bool Error(const std::string& reject_reason)
114 {
115 if (m_mode == ModeState::M_VALID)

Callers 15

PreChecksMethod · 0.80
ReplacementChecksMethod · 0.80
PackageMempoolChecksMethod · 0.80
PolicyScriptChecksMethod · 0.80
FinalizeMethod · 0.80
SubmitPackageMethod · 0.80
AcceptPackageMethod · 0.80
CheckInputScriptsFunction · 0.80
ConnectBlockMethod · 0.80
CheckBlockHeaderFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected