Add test that encryptwallet is disabled
This commit is contained in:
parent
2b499f4386
commit
d8e06e3f58
|
@ -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);
|
||||||
|
|
Loading…
Reference in New Issue