wallet: Add HasWallets

This commit is contained in:
João Barbosa
2018-04-18 13:46:11 +01:00
parent 373aee26c3
commit 3c058fdcc8
4 changed files with 8 additions and 2 deletions

View File

@@ -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