diff options
| author | João Barbosa <[email protected]> | 2018-04-18 13:46:11 +0100 |
|---|---|---|
| committer | João Barbosa <[email protected]> | 2018-04-18 22:07:58 +0100 |
| commit | 3c058fdcc8a71d17296973cb7f09e44a310df22e (patch) | |
| tree | 8897fab95f0c2b94503305bef537cf412642ac18 /src/rpc/misc.cpp | |
| parent | wallet: Add AddWallet, RemoveWallet, GetWallet and GetWallets (diff) | |
| download | discoin-3c058fdcc8a71d17296973cb7f09e44a310df22e.tar.xz discoin-3c058fdcc8a71d17296973cb7f09e44a310df22e.zip | |
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 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 |