mirror of
https://github.com/monero-project/monero.git
synced 2025-12-22 23:26:44 -08:00
make openalias also available for solo miner; introduce namespace tools::dns_utils; support integrated address with dns lookup
This commit is contained in:
@@ -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 <boost/filesystem.hpp>
|
||||
@@ -354,7 +355,7 @@ double WalletManagerImpl::miningHashRate() const
|
||||
|
||||
std::string WalletManagerImpl::resolveOpenAlias(const std::string &address, bool &dnssec_valid) const
|
||||
{
|
||||
std::vector<std::string> addresses = tools::wallet2::addresses_from_url(address, dnssec_valid);
|
||||
std::vector<std::string> addresses = tools::dns_utils::addresses_from_url(address, dnssec_valid);
|
||||
if (addresses.empty())
|
||||
return "";
|
||||
return addresses.front();
|
||||
|
||||
Reference in New Issue
Block a user