mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-12-06 18:53:21 +01:00
wallet: Add HasWallets
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user