Fix comment and formatting per review

This commit is contained in:
Simon
2016-09-29 22:07:38 -07:00
parent 2aa9c0253a
commit 82bd9ee81b
2 changed files with 4 additions and 3 deletions

View File

@@ -200,16 +200,17 @@ bool CWallet::AddCryptedSpendingKey(const libzcash::PaymentAddress &address,
return true;
{
LOCK(cs_wallet);
if (pwalletdbEncryption)
if (pwalletdbEncryption) {
return pwalletdbEncryption->WriteCryptedZKey(address,
vk,
vchCryptedSecret,
mapZKeyMetadata[address]);
else
} else {
return CWalletDB(strWalletFile).WriteCryptedZKey(address,
vk,
vchCryptedSecret,
mapZKeyMetadata[address]);
}
}
return false;
}