diff options
author | Fabian Jahr <fabian.jahr@whu.edu> | 2019-07-10 17:51:39 -0400 |
---|---|---|
committer | Fabian Jahr <fjahr@protonmail.com> | 2019-07-19 14:34:33 -0400 |
commit | ba1f128d6c117a63d5d904b3956551bd83405ec9 (patch) | |
tree | 371eb735cdfc4bb62a70dacf8a8ef9edb3693b1a /src/wallet/rpcwallet.cpp | |
parent | d6649d16b57e20b05075f1c80d0de7ff32cca1a4 (diff) |
Return error for ignored passphrase through disable private keys option
Diffstat (limited to 'src/wallet/rpcwallet.cpp')
-rw-r--r-- | src/wallet/rpcwallet.cpp | 4 |
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) { |