From 99580adf66b7d2f9d744f8d8a162de1b88955ddf Mon Sep 17 00:00:00 2001 From: kenshi84 Date: Fri, 16 Dec 2016 12:06:50 +0900 Subject: make openalias also available for solo miner; introduce namespace tools::dns_utils; support integrated address with dns lookup --- src/wallet/api/wallet_manager.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/wallet/api/wallet_manager.cpp') diff --git a/src/wallet/api/wallet_manager.cpp b/src/wallet/api/wallet_manager.cpp index 4ee5ab8df..d29f3d375 100644 --- a/src/wallet/api/wallet_manager.cpp +++ b/src/wallet/api/wallet_manager.cpp @@ -32,6 +32,7 @@ #include "wallet_manager.h" #include "wallet.h" #include "common_defines.h" +#include "common/dns_utils.h" #include "net/http_client.h" #include @@ -354,7 +355,7 @@ double WalletManagerImpl::miningHashRate() const std::string WalletManagerImpl::resolveOpenAlias(const std::string &address, bool &dnssec_valid) const { - std::vector addresses = tools::wallet2::addresses_from_url(address, dnssec_valid); + std::vector addresses = tools::dns_utils::addresses_from_url(address, dnssec_valid); if (addresses.empty()) return ""; return addresses.front(); -- cgit v1.2.3