aboutsummaryrefslogtreecommitdiff
path: root/src/wallet/rpcwallet.cpp
diff options
context:
space:
mode:
authorJoão Barbosa <[email protected]>2020-06-12 10:55:20 +0100
committerJoão Barbosa <[email protected]>2020-06-13 01:09:15 +0100
commitccf1f6ea24905876f35e685204cb2293cf083e97 (patch)
tree046963a42ec15b556ca6cde26a78998802c9e180 /src/wallet/rpcwallet.cpp
parentMerge #19177: test: Fix and clean p2p_invalid_messages functional tests (diff)
downloaddiscoin-ccf1f6ea24905876f35e685204cb2293cf083e97.tar.xz
discoin-ccf1f6ea24905876f35e685204cb2293cf083e97.zip
refactor: Drop ::HasWallets()
Diffstat (limited to 'src/wallet/rpcwallet.cpp')
-rw-r--r--src/wallet/rpcwallet.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/wallet/rpcwallet.cpp b/src/wallet/rpcwallet.cpp
index 0907f2aab..c3a64cf46 100644
--- a/src/wallet/rpcwallet.cpp
+++ b/src/wallet/rpcwallet.cpp
@@ -106,7 +106,7 @@ std::shared_ptr<CWallet> GetWalletForJSONRPCRequest(const JSONRPCRequest& reques
return wallets[0];
}
- if (!HasWallets()) {
+ if (wallets.empty()) {
throw JSONRPCError(
RPC_METHOD_NOT_FOUND, "Method not found (wallet method is disabled because no wallet is loaded)");
}