| 441 | } |
| 442 | |
| 443 | bool LegacyDataSPKM::GetPubKey(const CKeyID &address, CPubKey& vchPubKeyOut) const |
| 444 | { |
| 445 | LOCK(cs_KeyStore); |
| 446 | if (!m_storage.HasEncryptionKeys()) { |
| 447 | if (!FillableSigningProvider::GetPubKey(address, vchPubKeyOut)) { |
| 448 | return GetWatchPubKey(address, vchPubKeyOut); |
| 449 | } |
| 450 | return true; |
| 451 | } |
| 452 | |
| 453 | CryptedKeyMap::const_iterator mi = mapCryptedKeys.find(address); |
| 454 | if (mi != mapCryptedKeys.end()) |
| 455 | { |
| 456 | vchPubKeyOut = (*mi).second.first; |
| 457 | return true; |
| 458 | } |
| 459 | // Check for watch-only pubkeys |
| 460 | return GetWatchPubKey(address, vchPubKeyOut); |
| 461 | } |
| 462 | |
| 463 | std::unordered_set<CScript, SaltedSipHasher> LegacyDataSPKM::GetCandidateScriptPubKeys() const |
| 464 | { |