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

Method IsPayToScriptHash

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

Source from the content-addressed store, hash-verified

195}
196
197bool CScript::IsPayToScriptHash() const
198{
199 // Extra-fast test for pay-to-script-hash CScripts:
200 return (this->size() == 23 &&
201 (*this)[0] == OP_HASH160 &&
202 (*this)[1] == 0x14 &&
203 (*this)[22] == OP_EQUAL);
204}
205
206bool CScript::IsPayToWitnessScriptHash() const
207{

Callers 10

MutateTxSignFunction · 0.80
IsWitnessStandardFunction · 0.80
listunspentFunction · 0.80
rpcdump.cppFile · 0.80
VerifyScriptFunction · 0.80
CountWitnessSigOpsFunction · 0.80
SolverFunction · 0.80
BOOST_AUTO_TEST_CASEFunction · 0.80
SignTransactionFunction · 0.80
GetP2SHSigOpCountFunction · 0.80

Calls 1

sizeMethod · 0.45

Tested by 1

BOOST_AUTO_TEST_CASEFunction · 0.64