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

Function ParseScriptError

src/test/script_tests.cpp:113–120  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

111}
112
113static ScriptError_t ParseScriptError(const std::string& name)
114{
115 for (const auto& se : script_errors)
116 if (se.name == name)
117 return se.err;
118 BOOST_ERROR("Unknown scripterror \"" << name << "\" in test description");
119 return SCRIPT_ERR_UNKNOWN_ERROR;
120}
121
122struct ScriptTest : BasicTestingSetup {
123void DoTest(const CScript& scriptPubKey, const CScript& scriptSig, const CScriptWitness& scriptWitness, script_verify_flags flags, const std::string& message, int scriptError, CAmount nValue = 0)

Callers 1

BOOST_AUTO_TEST_CASEFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected