Browse Source

add missing lock to crypter GetKeys()

Issue: #10905
0.16
Marko Bencun 7 years ago
parent
commit
fe09b0197c
  1. 1
      src/wallet/crypter.h

1
src/wallet/crypter.h

@ -173,6 +173,7 @@ public:
bool GetPubKey(const CKeyID &address, CPubKey& vchPubKeyOut) const override; bool GetPubKey(const CKeyID &address, CPubKey& vchPubKeyOut) const override;
std::set<CKeyID> GetKeys() const override std::set<CKeyID> GetKeys() const override
{ {
LOCK(cs_KeyStore);
if (!IsCrypted()) { if (!IsCrypted()) {
return CBasicKeyStore::GetKeys(); return CBasicKeyStore::GetKeys();
} }

Loading…
Cancel
Save