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

Method CheckAfter

src/test/miniscript_tests.cpp:208–210  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

206
207 //! Implement simplified CLTV logic: stack value must exactly match an entry in `supported`.
208 bool CheckAfter(uint32_t value) const {
209 return supported.contains(Challenge(ChallengeType::AFTER, value));
210 }
211
212 //! Implement simplified CSV logic: stack value must exactly match an entry in `supported`.
213 bool CheckOlder(uint32_t value) const {

Callers 1

CheckLockTimeMethod · 0.45

Calls 1

containsMethod · 0.45

Tested by

no test coverage detected