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

Method IsPayToScriptHash

src/script/script.cpp:224–231  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

222}
223
224bool CScript::IsPayToScriptHash() const
225{
226 // Extra-fast test for pay-to-script-hash CScripts:
227 return (this->size() == 23 &&
228 (*this)[0] == OP_HASH160 &&
229 (*this)[1] == 0x14 &&
230 (*this)[22] == OP_EQUAL);
231}
232
233bool CScript::IsPayToWitnessScriptHash() const
234{

Callers 15

MutateTxSignFunction · 0.80
IsWitnessStandardFunction · 0.80
MigrateToDescriptorMethod · 0.80
listunspentFunction · 0.80
SolverFunction · 0.80
VerifyScriptFunction · 0.80
CountWitnessSigOpsFunction · 0.80
IsSegWitOutputFunction · 0.80
BOOST_AUTO_TEST_CASEFunction · 0.80
BOOST_AUTO_TEST_CASEFunction · 0.80
FUZZ_TARGETFunction · 0.80

Calls 1

sizeMethod · 0.45

Tested by 3

BOOST_AUTO_TEST_CASEFunction · 0.64
BOOST_AUTO_TEST_CASEFunction · 0.64
FUZZ_TARGETFunction · 0.64