aboutsummaryrefslogtreecommitdiff
path: root/src/common/dns_utils.cpp
diff options
context:
space:
mode:
authorkenshi84 <kenshi84@protonmail.ch>2017-01-24 20:22:31 +0900
committerkenshi84 <kenshi84@protonmail.ch>2017-01-24 20:31:03 +0900
commit55a8e982c0b34cd62d1ad1eb83d0683d5291f322 (patch)
treeb8be9bee56fee522c3e5dd0fd0b7cdd1a527337a /src/common/dns_utils.cpp
parentMerge pull request #1622 (diff)
downloadmonero-55a8e982c0b34cd62d1ad1eb83d0683d5291f322.tar.xz
moved get_account_address_from_str_or_url from libcommon to libcryptonote_core
Diffstat (limited to '')
-rw-r--r--src/common/dns_utils.cpp16
1 files changed, 0 insertions, 16 deletions
diff --git a/src/common/dns_utils.cpp b/src/common/dns_utils.cpp
index 2efdcffcd..83259bc70 100644
--- a/src/common/dns_utils.cpp
+++ b/src/common/dns_utils.cpp
@@ -451,22 +451,6 @@ std::string get_account_address_as_str_from_url(const std::string& url, bool& dn
return addresses[0];
}
-bool get_account_address_from_str_or_url(
- cryptonote::account_public_address& address
- , bool& has_payment_id
- , crypto::hash8& payment_id
- , bool testnet
- , const std::string& str_or_url
- )
-{
- if (cryptonote::get_account_integrated_address_from_str(address, has_payment_id, payment_id, testnet, str_or_url))
- return true;
- bool dnssec_valid;
- std::string address_str = get_account_address_as_str_from_url(str_or_url, dnssec_valid);
- return !address_str.empty() &&
- cryptonote::get_account_integrated_address_from_str(address, has_payment_id, payment_id, testnet, address_str);
-}
-
} // namespace tools::dns_utils
} // namespace tools