diff options
author | moneromooo-monero <moneromooo-monero@users.noreply.github.com> | 2017-07-27 11:28:53 +0100 |
---|---|---|
committer | moneromooo-monero <moneromooo-monero@users.noreply.github.com> | 2017-07-27 11:30:13 +0100 |
commit | cb0b559451466112332e0c251d100c2322803ad7 (patch) | |
tree | f6c0041a25fed22802c9005934f6db7310a98555 /src/common/dns_utils.h | |
parent | Merge pull request #2159 (diff) | |
download | monero-cb0b559451466112332e0c251d100c2322803ad7.tar.xz |
Move OpenAlias console input back from libs
Library code should definitely not ask for console input unless
it's clearly an input function. Delegating the user interaction
part to the caller means it can now be used by a GUI, or have a
decision algorithm better adapted to a particular caller.
Diffstat (limited to 'src/common/dns_utils.h')
-rw-r--r-- | src/common/dns_utils.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/common/dns_utils.h b/src/common/dns_utils.h index 53c0c1c7b..1f5cb4e7f 100644 --- a/src/common/dns_utils.h +++ b/src/common/dns_utils.h @@ -163,7 +163,7 @@ namespace dns_utils std::string address_from_txt_record(const std::string& s); std::vector<std::string> addresses_from_url(const std::string& url, bool& dnssec_valid); -std::string get_account_address_as_str_from_url(const std::string& url, bool& dnssec_valid, bool cli_confirm = true); +std::string get_account_address_as_str_from_url(const std::string& url, bool& dnssec_valid, std::function<std::string(const std::string&, const std::vector<std::string>&, bool)> confirm_dns); bool load_txt_records_from_dns(std::vector<std::string> &records, const std::vector<std::string> &dns_urls); |