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

Function FormatScriptError

src/test/script_tests.cpp:104–111  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

102}
103
104static std::string FormatScriptError(ScriptError_t err)
105{
106 for (const auto& se : script_errors)
107 if (se.err == err)
108 return se.name;
109 BOOST_ERROR("Unknown scripterror enumeration value, update script_errors in script_tests.cpp.");
110 return "";
111}
112
113static ScriptError_t ParseScriptError(const std::string& name)
114{

Callers 2

DoTestMethod · 0.85
GetJSONMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected