mirror of
https://github.com/monero-project/monero.git
synced 2025-05-19 21:30:22 -04:00
make openalias also available for solo miner; introduce namespace tools::dns_utils; support integrated address with dns lookup
This commit is contained in:
parent
4fe5c351cd
commit
99580adf66
9 changed files with 203 additions and 162 deletions
|
@ -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();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue