aboutsummaryrefslogtreecommitdiff
path: root/src/simplewallet/simplewallet.cpp
diff options
context:
space:
mode:
authormoneromooo-monero <moneromooo-monero@users.noreply.github.com>2019-06-21 13:55:50 +0000
committermoneromooo-monero <moneromooo-monero@users.noreply.github.com>2019-06-22 10:50:20 +0000
commita604241ef66cdb3f5c8b8af27df5404f8eda8eb0 (patch)
tree27591ab6dadd8ba387b5061ef0eb342915072827 /src/simplewallet/simplewallet.cpp
parentMerge pull request #5641 (diff)
downloadmonero-a604241ef66cdb3f5c8b8af27df5404f8eda8eb0.tar.xz
simplewallet: don't ask about mining when running a command line
This is likely to be done via a script
Diffstat (limited to 'src/simplewallet/simplewallet.cpp')
-rw-r--r--src/simplewallet/simplewallet.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/simplewallet/simplewallet.cpp b/src/simplewallet/simplewallet.cpp
index 02a099811..629e58267 100644
--- a/src/simplewallet/simplewallet.cpp
+++ b/src/simplewallet/simplewallet.cpp
@@ -4087,7 +4087,9 @@ bool simple_wallet::init(const boost::program_options::variables_map& vm)
m_wallet->callback(this);
- check_background_mining(password);
+ bool skip_check_backround_mining = !command_line::get_arg(vm, arg_command).empty();
+ if (!skip_check_backround_mining)
+ check_background_mining(password);
if (welcome)
message_writer(console_color_yellow, true) << tr("If you are new to Monero, type \"welcome\" for a brief overview.");