Add test that encryptwallet is disabled

This commit is contained in:
Jack Grigg 2016-10-20 14:45:44 -05:00
parent 2b499f4386
commit d8e06e3f58
No known key found for this signature in database
GPG Key ID: 6A6914DAFBEA00DA
1 changed files with 3 additions and 0 deletions

View File

@ -1090,6 +1090,9 @@ 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);
// Verify that the wallet encryption RPC is disabled
BOOST_CHECK_THROW(CallRPC("encryptwallet passphrase"), runtime_error);
// 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);