simplewallet: don't ask about mining when running a command line

This is likely to be done via a script
This commit is contained in:
moneromooo-monero 2019-06-21 13:55:50 +00:00
parent 6335509727
commit a604241ef6
No known key found for this signature in database
GPG key ID: 686F07454D6CEFC3

View file

@ -4087,6 +4087,8 @@ bool simple_wallet::init(const boost::program_options::variables_map& vm)
m_wallet->callback(this);
bool skip_check_backround_mining = !command_line::get_arg(vm, arg_command).empty();
if (!skip_check_backround_mining)
check_background_mining(password);
if (welcome)