aboutsummaryrefslogtreecommitdiff
path: root/src/simplewallet/simplewallet.cpp
diff options
context:
space:
mode:
authormoneromooo-monero <moneromooo-monero@users.noreply.github.com>2017-09-22 22:19:22 +0100
committermoneromooo-monero <moneromooo-monero@users.noreply.github.com>2017-09-22 22:19:22 +0100
commitc34093db588c533987cd65578711050f743b5c57 (patch)
treeb5fdcd2ef9f509a3649847b2019d8a1678cb67e1 /src/simplewallet/simplewallet.cpp
parentMerge pull request #2496 (diff)
downloadmonero-c34093db588c533987cd65578711050f743b5c57.tar.xz
simplewallet: add privacy warning when using an untrusted demon
Diffstat (limited to '')
-rw-r--r--src/simplewallet/simplewallet.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/simplewallet/simplewallet.cpp b/src/simplewallet/simplewallet.cpp
index 3fe68046b..86d0b1916 100644
--- a/src/simplewallet/simplewallet.cpp
+++ b/src/simplewallet/simplewallet.cpp
@@ -1397,6 +1397,9 @@ bool simple_wallet::init(const boost::program_options::variables_map& vm)
}
catch (const std::exception &e) { }
+ if (!m_trusted_daemon)
+ message_writer() << (boost::format(tr("Warning: using an untrusted daemon at %s, privacy will be lessened")) % m_wallet->get_daemon_address()).str();
+
m_http_client.set_server(m_wallet->get_daemon_address(), m_wallet->get_daemon_login());
m_wallet->callback(this);