diff options
author | João Barbosa <joao.paulo.barbosa@gmail.com> | 2018-04-18 13:46:11 +0100 |
---|---|---|
committer | João Barbosa <joao.paulo.barbosa@gmail.com> | 2018-04-18 22:07:58 +0100 |
commit | 3c058fdcc8a71d17296973cb7f09e44a310df22e (patch) | |
tree | 8897fab95f0c2b94503305bef537cf412642ac18 /src/rpc/misc.cpp | |
parent | 373aee26c3df233f4e0a7e806f45ac7cb5aab1e6 (diff) | |
download | bitcoin-3c058fdcc8a71d17296973cb7f09e44a310df22e.tar.xz |
wallet: Add HasWallets
Diffstat (limited to 'src/rpc/misc.cpp')
-rw-r--r-- | src/rpc/misc.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/rpc/misc.cpp b/src/rpc/misc.cpp index ba3ea70557..6754407dbd 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 |