Fix comment and formatting per review
This commit is contained in:
parent
2aa9c0253a
commit
82bd9ee81b
|
@ -1065,7 +1065,7 @@ BOOST_AUTO_TEST_CASE(rpc_wallet_encrypted_wallet_zkeys)
|
||||||
Array arr = retValue.get_array();
|
Array arr = retValue.get_array();
|
||||||
BOOST_CHECK(arr.size() == n);
|
BOOST_CHECK(arr.size() == n);
|
||||||
|
|
||||||
// Encrypt the wallet (we can''t call RPC encryptwallet as that shuts down node)
|
// Encrypt the wallet (we can't call RPC encryptwallet as that shuts down node)
|
||||||
SecureString strWalletPass;
|
SecureString strWalletPass;
|
||||||
strWalletPass.reserve(100);
|
strWalletPass.reserve(100);
|
||||||
strWalletPass = "hello";
|
strWalletPass = "hello";
|
||||||
|
|
|
@ -200,17 +200,18 @@ bool CWallet::AddCryptedSpendingKey(const libzcash::PaymentAddress &address,
|
||||||
return true;
|
return true;
|
||||||
{
|
{
|
||||||
LOCK(cs_wallet);
|
LOCK(cs_wallet);
|
||||||
if (pwalletdbEncryption)
|
if (pwalletdbEncryption) {
|
||||||
return pwalletdbEncryption->WriteCryptedZKey(address,
|
return pwalletdbEncryption->WriteCryptedZKey(address,
|
||||||
vk,
|
vk,
|
||||||
vchCryptedSecret,
|
vchCryptedSecret,
|
||||||
mapZKeyMetadata[address]);
|
mapZKeyMetadata[address]);
|
||||||
else
|
} else {
|
||||||
return CWalletDB(strWalletFile).WriteCryptedZKey(address,
|
return CWalletDB(strWalletFile).WriteCryptedZKey(address,
|
||||||
vk,
|
vk,
|
||||||
vchCryptedSecret,
|
vchCryptedSecret,
|
||||||
mapZKeyMetadata[address]);
|
mapZKeyMetadata[address]);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue