diff --git a/src/test/rpc_wallet_tests.cpp b/src/test/rpc_wallet_tests.cpp index 17b3925f..46229a9a 100644 --- a/src/test/rpc_wallet_tests.cpp +++ b/src/test/rpc_wallet_tests.cpp @@ -1065,7 +1065,7 @@ BOOST_AUTO_TEST_CASE(rpc_wallet_encrypted_wallet_zkeys) Array arr = retValue.get_array(); 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; strWalletPass.reserve(100); strWalletPass = "hello"; diff --git a/src/wallet/wallet.cpp b/src/wallet/wallet.cpp index 1bc954cc..862b3831 100644 --- a/src/wallet/wallet.cpp +++ b/src/wallet/wallet.cpp @@ -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; }