aboutsummaryrefslogtreecommitdiff
path: root/src/simplewallet
diff options
context:
space:
mode:
authormoneromooo-monero <moneromooo-monero@users.noreply.github.com>2015-10-12 00:04:57 +0100
committermoneromooo-monero <moneromooo-monero@users.noreply.github.com>2015-10-12 00:04:57 +0100
commit0f6d3aa9c72607055b0212241056b38b71cbcec2 (patch)
tree63f5789813803f7620e2724fec2739826972f39c /src/simplewallet
parentMerge pull request #427 (diff)
downloadmonero-0f6d3aa9c72607055b0212241056b38b71cbcec2.tar.xz
simplewallet: hide start_mining behind --trusted-daemon
because it leaks your standard address
Diffstat (limited to 'src/simplewallet')
-rw-r--r--src/simplewallet/simplewallet.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/simplewallet/simplewallet.cpp b/src/simplewallet/simplewallet.cpp
index 445304dc7..8629ea566 100644
--- a/src/simplewallet/simplewallet.cpp
+++ b/src/simplewallet/simplewallet.cpp
@@ -985,6 +985,12 @@ bool simple_wallet::save_watch_only(const std::vector<std::string> &args/* = std
//----------------------------------------------------------------------------------------------------
bool simple_wallet::start_mining(const std::vector<std::string>& args)
{
+ if (!m_trusted_daemon)
+ {
+ fail_msg_writer() << tr("This command assume a trusted daemon. Enable with --trusted-daemon");
+ return true;
+ }
+
if (!try_connect_to_daemon())
return true;