MCPcopy Create free account
hub / github.com/Raptor3um/raptoreum / IsPayToScriptHash

Method IsPayToScriptHash

src/script/script.cpp:350–356  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

348}
349
350bool CScript::IsPayToScriptHash() const {
351 // Extra-fast test for pay-to-script-hash CScripts:
352 return (this->size() == 23 &&
353 (*this)[0] == OP_HASH160 &&
354 (*this)[1] == 0x14 &&
355 (*this)[22] == OP_EQUAL);
356}
357
358bool CScript::IsPayToPublicKey() const {
359 // Test for pay-to-pubkey CScript with both

Callers 14

addAddressIndexMethod · 0.80
addFutureIndexMethod · 0.80
addSpentIndexMethod · 0.80
DisconnectBlockMethod · 0.80
ConnectBlockMethod · 0.80
listunspentFunction · 0.80
VerifyScriptFunction · 0.80
SolverFunction · 0.80
BOOST_AUTO_TEST_CASEFunction · 0.80
CheckProRegTxFunction · 0.80
CheckProUpServTxFunction · 0.80
CheckProUpRegTxFunction · 0.80

Calls 1

sizeMethod · 0.45

Tested by 1

BOOST_AUTO_TEST_CASEFunction · 0.64