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

Method IsPayToWitnessScriptHash

src/script/script.cpp:330–336  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

328/////////////////////////////////////////////////////////
329
330bool CScript::IsPayToWitnessScriptHash() const
331{
332 // Extra-fast test for pay-to-witness-script-hash CScripts:
333 return (this->size() == 34 &&
334 (*this)[0] == OP_0 &&
335 (*this)[1] == 0x20);
336}
337
338bool CScript::IsPayToWitnessPubkeyHash() const
339{

Callers 3

addSpentIndexMethod · 0.80
signrawtransactionFunction · 0.80
GetHashForDestinationFunction · 0.80

Calls 1

sizeMethod · 0.45

Tested by

no test coverage detected