mirror of
https://git.wownero.com/wownero/wownero.git
synced 2024-12-23 05:48:53 +00:00
Merge pull request #6341
927fd47
simplewallet: fix smart mining not starting after first setup (moneromooo-monero)
This commit is contained in:
commit
53800b3b63
@ -5199,8 +5199,11 @@ void simple_wallet::check_background_mining(const epee::wipeable_string &passwor
|
|||||||
if (is_background_mining_enabled)
|
if (is_background_mining_enabled)
|
||||||
{
|
{
|
||||||
// already active, nice
|
// already active, nice
|
||||||
|
if (setup == tools::wallet2::BackgroundMiningMaybe)
|
||||||
|
{
|
||||||
m_wallet->setup_background_mining(tools::wallet2::BackgroundMiningYes);
|
m_wallet->setup_background_mining(tools::wallet2::BackgroundMiningYes);
|
||||||
m_wallet->rewrite(m_wallet_file, password);
|
m_wallet->rewrite(m_wallet_file, password);
|
||||||
|
}
|
||||||
start_background_mining();
|
start_background_mining();
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
@ -5223,6 +5226,11 @@ void simple_wallet::check_background_mining(const epee::wipeable_string &passwor
|
|||||||
m_wallet->rewrite(m_wallet_file, password);
|
m_wallet->rewrite(m_wallet_file, password);
|
||||||
start_background_mining();
|
start_background_mining();
|
||||||
}
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
// the setting is already enabled, and the daemon is not mining yet, so start it
|
||||||
|
start_background_mining();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
//----------------------------------------------------------------------------------------------------
|
//----------------------------------------------------------------------------------------------------
|
||||||
bool simple_wallet::start_mining(const std::vector<std::string>& args)
|
bool simple_wallet::start_mining(const std::vector<std::string>& args)
|
||||||
|
Loading…
Reference in New Issue
Block a user