aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/wallet/crypter.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/wallet/crypter.h b/src/wallet/crypter.h
index d6f3e27721..0295004cb3 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<CKeyID> GetKeys() const override
{
+ LOCK(cs_KeyStore);
if (!IsCrypted()) {
return CBasicKeyStore::GetKeys();
}