aboutsummaryrefslogtreecommitdiff
path: root/src/rpc/misc.cpp
diff options
context:
space:
mode:
authorJoão Barbosa <[email protected]>2018-04-18 13:46:11 +0100
committerJoão Barbosa <[email protected]>2018-04-18 22:07:58 +0100
commit3c058fdcc8a71d17296973cb7f09e44a310df22e (patch)
tree8897fab95f0c2b94503305bef537cf412642ac18 /src/rpc/misc.cpp
parentwallet: Add AddWallet, RemoveWallet, GetWallet and GetWallets (diff)
downloaddiscoin-3c058fdcc8a71d17296973cb7f09e44a310df22e.tar.xz
discoin-3c058fdcc8a71d17296973cb7f09e44a310df22e.zip
wallet: Add HasWallets
Diffstat (limited to 'src/rpc/misc.cpp')
-rw-r--r--src/rpc/misc.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/rpc/misc.cpp b/src/rpc/misc.cpp
index ba3ea7055..6754407db 100644
--- a/src/rpc/misc.cpp
+++ b/src/rpc/misc.cpp
@@ -69,7 +69,7 @@ UniValue validateaddress(const JSONRPCRequest& request)
{
#ifdef ENABLE_WALLET
- if (!GetWallets().empty() && IsDeprecatedRPCEnabled("validateaddress")) {
+ if (HasWallets() && IsDeprecatedRPCEnabled("validateaddress")) {
ret.pushKVs(getaddressinfo(request));
}
#endif