MCPcopy Create free account
hub / github.com/bitcoinxt/bitcoinxt / Get

Method Get

src/script/sigcache.cpp:32–42  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

30
31public:
32 bool
33 Get(const uint256 &hash, const std::vector<unsigned char>& vchSig, const CPubKey& pubKey)
34 {
35 boost::shared_lock<boost::shared_mutex> lock(cs_sigcache);
36
37 sigdata_type k(hash, vchSig, pubKey);
38 std::set<sigdata_type>::iterator mi = setValid.find(k);
39 if (mi != setValid.end())
40 return true;
41 return false;
42 }
43
44 void Set(const uint256 &hash, const std::vector<unsigned char>& vchSig, const CPubKey& pubKey)
45 {

Callers 1

VerifySignatureMethod · 0.45

Calls 2

findMethod · 0.80
endMethod · 0.45

Tested by

no test coverage detected