diff options
| author | luigi1111 <luigi1111w@gmail.com> | 2019-08-17 15:27:21 -0500 |
|---|---|---|
| committer | luigi1111 <luigi1111w@gmail.com> | 2019-08-17 15:27:21 -0500 |
| commit | 459beb50d4ac96c408c7b8c45bea88f7ee3e1158 (patch) | |
| tree | 2b6b0bfb58c498b2663b2a6ec019c7c6df4a3197 /src/simplewallet/simplewallet.cpp | |
| parent | 12d08dcbf5523bffa5ffd3573638060aa29d1baf (diff) | |
| parent | a604241ef66cdb3f5c8b8af27df5404f8eda8eb0 (diff) | |
| download | monzero-core-459beb50d4ac96c408c7b8c45bea88f7ee3e1158.tar.gz monzero-core-459beb50d4ac96c408c7b8c45bea88f7ee3e1158.tar.xz monzero-core-459beb50d4ac96c408c7b8c45bea88f7ee3e1158.zip | |
Merge pull request #5685
a604241 simplewallet: don't ask about mining when running a command line (moneromooo-monero)
Diffstat (limited to 'src/simplewallet/simplewallet.cpp')
| -rw-r--r-- | src/simplewallet/simplewallet.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/simplewallet/simplewallet.cpp b/src/simplewallet/simplewallet.cpp index 10901bb51..9bae6c028 100644 --- a/src/simplewallet/simplewallet.cpp +++ b/src/simplewallet/simplewallet.cpp @@ -4089,7 +4089,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."); |
