| 17 | } |
| 18 | |
| 19 | bool 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 | |
| 27 | void CSignatureCache::Set(const uint256& sigHash, const std::vector<unsigned char>& vchSig, |
| 28 | const CPubKey& pubKey) { |
no test coverage detected