Browse Source

Add test that encryptwallet is disabled

pull/4/head
Jack Grigg 8 years ago
parent
commit
d8e06e3f58
No known key found for this signature in database GPG Key ID: 6A6914DAFBEA00DA
  1. 3
      src/test/rpc_wallet_tests.cpp

3
src/test/rpc_wallet_tests.cpp

@ -1090,6 +1090,9 @@ BOOST_AUTO_TEST_CASE(rpc_wallet_encrypted_wallet_zkeys)
Array arr = retValue.get_array();
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)
SecureString strWalletPass;
strWalletPass.reserve(100);

Loading…
Cancel
Save