Fix incorrect locking in CCryptoKeyStore

This commit is contained in:
Jack Grigg
2016-10-31 19:57:30 -05:00
parent 1feaefac51
commit 1749dd69c7
2 changed files with 3 additions and 3 deletions

View File

@@ -207,7 +207,7 @@ public:
bool HaveSpendingKey(const libzcash::PaymentAddress &address) const
{
{
LOCK(cs_KeyStore);
LOCK(cs_SpendingKeyStore);
if (!IsCrypted())
return CBasicKeyStore::HaveSpendingKey(address);
return mapCryptedSpendingKeys.count(address) > 0;