Check for unencrypted Sapling keys in CCryptoKeyStore::SetCrypted()
This commit is contained in:
parent
0adba6789b
commit
4a89221ffc
|
@ -173,7 +173,7 @@ bool CCryptoKeyStore::SetCrypted()
|
||||||
LOCK2(cs_KeyStore, cs_SpendingKeyStore);
|
LOCK2(cs_KeyStore, cs_SpendingKeyStore);
|
||||||
if (fUseCrypto)
|
if (fUseCrypto)
|
||||||
return true;
|
return true;
|
||||||
if (!(mapKeys.empty() && mapSpendingKeys.empty()))
|
if (!(mapKeys.empty() && mapSpendingKeys.empty() && mapSaplingSpendingKeys.empty()))
|
||||||
return false;
|
return false;
|
||||||
fUseCrypto = true;
|
fUseCrypto = true;
|
||||||
return true;
|
return true;
|
||||||
|
|
|
@ -133,7 +133,7 @@ private:
|
||||||
|
|
||||||
CKeyingMaterial vMasterKey;
|
CKeyingMaterial vMasterKey;
|
||||||
|
|
||||||
//! if fUseCrypto is true, mapKeys and mapSpendingKeys must be empty
|
//! if fUseCrypto is true, mapKeys, mapSpendingKeys, and mapSaplingSpendingKeys must be empty
|
||||||
//! if fUseCrypto is false, vMasterKey must be empty
|
//! if fUseCrypto is false, vMasterKey must be empty
|
||||||
bool fUseCrypto;
|
bool fUseCrypto;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue