Changeset View
Changeset View
Standalone View
Standalone View
src/wallet/crypter.cpp
Show First 20 Lines • Show All 264 Lines • ▼ Show 20 Lines | |||||
bool CCryptoKeyStore::AddCryptedKey( | bool CCryptoKeyStore::AddCryptedKey( | ||||
const CPubKey &vchPubKey, const std::vector<uint8_t> &vchCryptedSecret) { | const CPubKey &vchPubKey, const std::vector<uint8_t> &vchCryptedSecret) { | ||||
LOCK(cs_KeyStore); | LOCK(cs_KeyStore); | ||||
if (!SetCrypted()) { | if (!SetCrypted()) { | ||||
return false; | return false; | ||||
} | } | ||||
mapCryptedKeys[vchPubKey.GetID()] = make_pair(vchPubKey, vchCryptedSecret); | mapCryptedKeys[vchPubKey.GetID()] = make_pair(vchPubKey, vchCryptedSecret); | ||||
ImplicitlyLearnRelatedKeyScripts(vchPubKey); | |||||
return true; | return true; | ||||
} | } | ||||
bool CCryptoKeyStore::HaveKey(const CKeyID &address) const { | bool CCryptoKeyStore::HaveKey(const CKeyID &address) const { | ||||
LOCK(cs_KeyStore); | LOCK(cs_KeyStore); | ||||
if (!IsCrypted()) { | if (!IsCrypted()) { | ||||
return CBasicKeyStore::HaveKey(address); | return CBasicKeyStore::HaveKey(address); | ||||
} | } | ||||
▲ Show 20 Lines • Show All 70 Lines • Show Last 20 Lines |