| 241 | } |
| 242 | |
| 243 | bool CCryptoKeyStore::GetPubKey(const CKeyID& keyid, CPubKey& vchPubKeyOut, bool isMiner) const { |
| 244 | LOCK(cs_KeyStore); |
| 245 | |
| 246 | if (isMiner) |
| 247 | return CKeyStore::GetPubKey(keyid, vchPubKeyOut, isMiner); |
| 248 | |
| 249 | if (!IsEncrypted()) |
| 250 | return CKeyStore::GetPubKey(keyid, vchPubKeyOut, isMiner); |
| 251 | |
| 252 | CryptedKeyMap::const_iterator mi = mapCryptedKeys.find(keyid); |
| 253 | if (mi != mapCryptedKeys.end()) { |
| 254 | vchPubKeyOut = (*mi).second.first; |
| 255 | return true; |
| 256 | } |
| 257 | |
| 258 | return false; |
| 259 | } |
| 260 | |
| 261 | bool CCryptoKeyStore::GetKeyCombi(const CKeyID& keyid, CKeyCombi& keyCombiOut) const { |
| 262 |
no test coverage detected