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

Method Get

src/sigcache.cpp:19–25  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

17}
18
19bool CSignatureCache::Get(const uint256& sigHash, const std::vector<unsigned char>& vchSig,
20 const CPubKey& pubKey) {
21 uint256 entry;
22 ComputeEntry(entry, sigHash, vchSig, pubKey);
23 std::unique_lock<std::mutex> lock(mtx);
24 return setValid.count(entry);
25}
26
27void CSignatureCache::Set(const uint256& sigHash, const std::vector<unsigned char>& vchSig,
28 const CPubKey& pubKey) {

Callers 1

VerifySignatureFunction · 0.45

Calls 1

countMethod · 0.45

Tested by

no test coverage detected