diff --git a/src/wallet/crypter.h b/src/wallet/crypter.h index d6f3e2772..0295004cb 100644 --- a/src/wallet/crypter.h +++ b/src/wallet/crypter.h @@ -173,6 +173,7 @@ public: bool GetPubKey(const CKeyID &address, CPubKey& vchPubKeyOut) const override; std::set GetKeys() const override { + LOCK(cs_KeyStore); if (!IsCrypted()) { return CBasicKeyStore::GetKeys(); }