diff options
author | stoffu <stoffu@protonmail.ch> | 2017-03-17 08:04:17 +0900 |
---|---|---|
committer | stoffu <stoffu@protonmail.ch> | 2017-03-17 10:42:10 +0900 |
commit | 250c4cb3e08375f88942f46a3939d050d5c9ebd2 (patch) | |
tree | 701896339785cbb8e4235a26c4a55e0e5abd5933 /src/cryptonote_basic/cryptonote_basic_impl.cpp | |
parent | Merge pull request #1869 (diff) | |
download | monero-250c4cb3e08375f88942f46a3939d050d5c9ebd2.tar.xz |
wallet-rpc: enable openalias
Diffstat (limited to '')
-rw-r--r-- | src/cryptonote_basic/cryptonote_basic_impl.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/cryptonote_basic/cryptonote_basic_impl.cpp b/src/cryptonote_basic/cryptonote_basic_impl.cpp index fb9e25c00..edd67793f 100644 --- a/src/cryptonote_basic/cryptonote_basic_impl.cpp +++ b/src/cryptonote_basic/cryptonote_basic_impl.cpp @@ -308,12 +308,13 @@ namespace cryptonote { , crypto::hash8& payment_id , bool testnet , const std::string& str_or_url + , bool cli_confirm ) { if (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 = tools::dns_utils::get_account_address_as_str_from_url(str_or_url, dnssec_valid); + std::string address_str = tools::dns_utils::get_account_address_as_str_from_url(str_or_url, dnssec_valid, cli_confirm); return !address_str.empty() && get_account_integrated_address_from_str(address, has_payment_id, payment_id, testnet, address_str); } @@ -322,11 +323,12 @@ namespace cryptonote { cryptonote::account_public_address& address , bool testnet , const std::string& str_or_url + , bool cli_confirm ) { bool has_payment_id; crypto::hash8 payment_id; - return get_account_address_from_str_or_url(address, has_payment_id, payment_id, testnet, str_or_url); + return get_account_address_from_str_or_url(address, has_payment_id, payment_id, testnet, str_or_url, cli_confirm); } //-------------------------------------------------------------------------------- bool operator ==(const cryptonote::transaction& a, const cryptonote::transaction& b) { |