| 30 | |
| 31 | public: |
| 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 | { |
no test coverage detected