MCPcopy Create free account
hub / github.com/LUX-Core/lux / IsPayToScriptHash

Method IsPayToScriptHash

src/script/script.cpp:295–302  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

293}
294
295bool CScript::IsPayToScriptHash() const
296{
297 // Extra-fast test for pay-to-script-hash CScripts:
298 return (this->size() == 23 &&
299 (*this)[0] == OP_HASH160 &&
300 (*this)[1] == 0x14 &&
301 (*this)[22] == OP_EQUAL);
302}
303
304///////////////////////////////////////////////////////// // lux
305bool CScript::IsPayToPubkey() const

Callers 10

MutateTxSignFunction · 0.80
addSpentIndexMethod · 0.80
listunspentFunction · 0.80
signrawtransactionFunction · 0.80
GetP2SHSigOpCountFunction · 0.80
IsWitnessStandardFunction · 0.80
VerifyScriptFunction · 0.80
CountWitnessSigOpsFunction · 0.80
SolverFunction · 0.80
BOOST_AUTO_TEST_CASEFunction · 0.80

Calls 1

sizeMethod · 0.45

Tested by 1

BOOST_AUTO_TEST_CASEFunction · 0.64