MCPcopy Create free account
hub / github.com/BTCGPU/BTCGPU / bitcoinconsensus_verify_script

Function bitcoinconsensus_verify_script

src/script/bitcoinconsensus.cpp:113–123  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

111
112
113int bitcoinconsensus_verify_script(const unsigned char *scriptPubKey, unsigned int scriptPubKeyLen,
114 const unsigned char *txTo , unsigned int txToLen,
115 unsigned int nIn, unsigned int flags, bitcoinconsensus_error* err)
116{
117 if (flags & bitcoinconsensus_SCRIPT_FLAGS_VERIFY_WITNESS) {
118 return set_error(err, bitcoinconsensus_ERR_AMOUNT_REQUIRED);
119 }
120
121 CAmount am(0);
122 return ::verify_script(scriptPubKey, scriptPubKeyLen, am, txTo, txToLen, nIn, flags, err);
123}
124
125unsigned int bitcoinconsensus_version()
126{

Callers 2

DoTestFunction · 0.85
BOOST_AUTO_TEST_CASEFunction · 0.85

Calls 2

verify_scriptFunction · 0.85
set_errorFunction · 0.70

Tested by 2

DoTestFunction · 0.68
BOOST_AUTO_TEST_CASEFunction · 0.68