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

Function FormatScriptError

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

Source from the content-addressed store, hash-verified

95};
96
97const char *FormatScriptError(ScriptError_t err)
98{
99 for (unsigned int i=0; i<ARRAYLEN(script_errors); ++i)
100 if (script_errors[i].err == err)
101 return script_errors[i].name;
102 BOOST_ERROR("Unknown scripterror enumeration value, update script_errors in script_tests.cpp.");
103 return "";
104}
105
106ScriptError_t ParseScriptError(const std::string &name)
107{

Callers 2

DoTestFunction · 0.85
GetJSONMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected