aboutsummaryrefslogtreecommitdiff
path: root/src/wallet/rpcwallet.cpp
diff options
context:
space:
mode:
authorFabian Jahr <fabian.jahr@whu.edu>2019-07-10 17:51:39 -0400
committerFabian Jahr <fjahr@protonmail.com>2019-07-19 14:34:33 -0400
commitba1f128d6c117a63d5d904b3956551bd83405ec9 (patch)
tree371eb735cdfc4bb62a70dacf8a8ef9edb3693b1a /src/wallet/rpcwallet.cpp
parentd6649d16b57e20b05075f1c80d0de7ff32cca1a4 (diff)
downloadbitcoin-ba1f128d6c117a63d5d904b3956551bd83405ec9.tar.xz
Return error for ignored passphrase through disable private keys option
Diffstat (limited to 'src/wallet/rpcwallet.cpp')
-rw-r--r--src/wallet/rpcwallet.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/wallet/rpcwallet.cpp b/src/wallet/rpcwallet.cpp
index b7618e1259..a600331ba0 100644
--- a/src/wallet/rpcwallet.cpp
+++ b/src/wallet/rpcwallet.cpp
@@ -2684,8 +2684,8 @@ static UniValue createwallet(const JSONRPCRequest& request)
std::string error;
std::string warning;
- WalletCreationStatus status;
- std::shared_ptr<CWallet> wallet = CreateWallet(*g_rpc_interfaces->chain, passphrase, flags, request.params[0].get_str(), error, warning, status);
+ std::shared_ptr<CWallet> wallet;
+ WalletCreationStatus status = CreateWallet(*g_rpc_interfaces->chain, passphrase, flags, request.params[0].get_str(), error, warning, wallet);
if (status == WalletCreationStatus::CREATION_FAILED) {
throw JSONRPCError(RPC_WALLET_ERROR, error);
} else if (status == WalletCreationStatus::ENCRYPTION_FAILED) {