MCPcopy Create free account
hub / github.com/bitcoin/bitcoin / IsPayToAnchor

Method IsPayToAnchor

src/script/script.cpp:207–214  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

205}
206
207bool CScript::IsPayToAnchor() const
208{
209 return (this->size() == 4 &&
210 (*this)[0] == OP_1 &&
211 (*this)[1] == 0x02 &&
212 (*this)[2] == 0x4e &&
213 (*this)[3] == 0x73);
214}
215
216bool CScript::IsPayToAnchor(int version, const std::vector<unsigned char>& program)
217{

Callers 6

IsWitnessStandardFunction · 0.80
SolverFunction · 0.80
BOOST_AUTO_TEST_CASEFunction · 0.80
BOOST_AUTO_TEST_CASEFunction · 0.80
FUZZ_TARGETFunction · 0.80

Calls 1

sizeMethod · 0.45

Tested by 3

BOOST_AUTO_TEST_CASEFunction · 0.64
BOOST_AUTO_TEST_CASEFunction · 0.64
FUZZ_TARGETFunction · 0.64