mirror of
https://github.com/ElementsProject/elements.git
synced 2026-08-15 12:51:00 +02:00
wallet: Add HasWallets
This commit is contained in:
parent
373aee26c3
commit
3c058fdcc8
4 changed files with 8 additions and 2 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue