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

Method IsPayToScriptHash

src/script/script.cpp:204–211  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

202}
203
204bool CScript::IsPayToScriptHash() const
205{
206 // Extra-fast test for pay-to-script-hash CScripts:
207 return (this->size() == 23 &&
208 (*this)[0] == OP_HASH160 &&
209 (*this)[1] == 0x14 &&
210 (*this)[22] == OP_EQUAL);
211}
212
213bool CScript::IsPayToWitnessScriptHash() const
214{

Callers 10

MutateTxSignFunction · 0.80
GetP2SHSigOpCountFunction · 0.80
IsWitnessStandardFunction · 0.80
BOOST_FOREACHFunction · 0.80
ProcessImportFunction · 0.80
VerifyScriptFunction · 0.80
CountWitnessSigOpsFunction · 0.80
SolverFunction · 0.80
BOOST_AUTO_TEST_CASEFunction · 0.80
signrawtransactionFunction · 0.80

Calls 1

sizeMethod · 0.45

Tested by 1

BOOST_AUTO_TEST_CASEFunction · 0.64