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

Function MsLookupHelper

src/script/sign.cpp:405–413  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

403
404template<typename M, typename K, typename V>
405miniscript::Availability MsLookupHelper(const M& map, const K& key, V& value)
406{
407 auto it = map.find(key);
408 if (it != map.end()) {
409 value = it->second;
410 return miniscript::Availability::YES;
411 }
412 return miniscript::Availability::NO;
413}
414
415/**
416 * Context for solving a Miniscript.

Callers 4

SatSHA256Method · 0.85
SatRIPEMD160Method · 0.85
SatHASH256Method · 0.85
SatHASH160Method · 0.85

Calls 2

findMethod · 0.80
endMethod · 0.45

Tested by

no test coverage detected