From 0f6d3aa9c72607055b0212241056b38b71cbcec2 Mon Sep 17 00:00:00 2001 From: moneromooo-monero Date: Mon, 12 Oct 2015 00:04:57 +0100 Subject: simplewallet: hide start_mining behind --trusted-daemon because it leaks your standard address --- src/simplewallet/simplewallet.cpp | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src/simplewallet') 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 &args/* = std //---------------------------------------------------------------------------------------------------- bool simple_wallet::start_mining(const std::vector& 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; -- cgit v1.2.3