MCPcopy Create free account
hub / github.com/bitcoinxt/bitcoinxt / 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->at(0) == OP_HASH160 &&
209 this->at(1) == 0x14 &&
210 this->at(22) == OP_EQUAL);
211}
212
213bool CScript::IsPushOnly() const
214{

Callers 7

MutateTxSignFunction · 0.80
signrawtransactionFunction · 0.80
GetP2SHSigOpCountFunction · 0.80
BOOST_FOREACHFunction · 0.80
VerifyScriptFunction · 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