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

Method CheckOlder

src/test/miniscript_tests.cpp:213–215  ·  view source on GitHub ↗

Implement simplified CSV logic: stack value must exactly match an entry in `supported`.

Source from the content-addressed store, hash-verified

211
212 //! Implement simplified CSV logic: stack value must exactly match an entry in `supported`.
213 bool CheckOlder(uint32_t value) const {
214 return supported.contains(Challenge(ChallengeType::OLDER, value));
215 }
216
217 //! Produce a signature for the given key.
218 miniscript::Availability Sign(const CPubKey& key, std::vector<unsigned char>& sig) const {

Callers 1

CheckSequenceMethod · 0.45

Calls 1

containsMethod · 0.45

Tested by

no test coverage detected