mirror of
https://git.wownero.com/wownero/wownero.git
synced 2024-12-22 12:58:53 +00:00
remove warning about background mining
This commit is contained in:
parent
6ca2369b67
commit
8337a81ef5
@ -5424,7 +5424,6 @@ void simple_wallet::stop_background_mining()
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
message_writer(console_color_red, false) << tr("Background mining not enabled. Run \"set setup-background-mining 1\" to change.");
|
|
||||||
}
|
}
|
||||||
//----------------------------------------------------------------------------------------------------
|
//----------------------------------------------------------------------------------------------------
|
||||||
void simple_wallet::check_background_mining(const epee::wipeable_string &password)
|
void simple_wallet::check_background_mining(const epee::wipeable_string &password)
|
||||||
@ -5432,7 +5431,6 @@ void simple_wallet::check_background_mining(const epee::wipeable_string &passwor
|
|||||||
tools::wallet2::BackgroundMiningSetupType setup = m_wallet->setup_background_mining();
|
tools::wallet2::BackgroundMiningSetupType setup = m_wallet->setup_background_mining();
|
||||||
if (setup == tools::wallet2::BackgroundMiningNo)
|
if (setup == tools::wallet2::BackgroundMiningNo)
|
||||||
{
|
{
|
||||||
message_writer(console_color_red, false) << tr("Background mining not enabled. Run \"set setup-background-mining 1\" to change.");
|
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -5473,7 +5471,6 @@ void simple_wallet::check_background_mining(const epee::wipeable_string &passwor
|
|||||||
if (std::cin.eof() || !command_line::is_yes(accepted)) {
|
if (std::cin.eof() || !command_line::is_yes(accepted)) {
|
||||||
m_wallet->setup_background_mining(tools::wallet2::BackgroundMiningNo);
|
m_wallet->setup_background_mining(tools::wallet2::BackgroundMiningNo);
|
||||||
m_wallet->rewrite(m_wallet_file, password);
|
m_wallet->rewrite(m_wallet_file, password);
|
||||||
message_writer(console_color_red, false) << tr("Background mining not enabled. Set setup-background-mining to 1 to change.");
|
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
m_wallet->setup_background_mining(tools::wallet2::BackgroundMiningYes);
|
m_wallet->setup_background_mining(tools::wallet2::BackgroundMiningYes);
|
||||||
|
@ -295,7 +295,6 @@ namespace tools
|
|||||||
tools::wallet2::BackgroundMiningSetupType setup = m_wallet->setup_background_mining();
|
tools::wallet2::BackgroundMiningSetupType setup = m_wallet->setup_background_mining();
|
||||||
if (setup == tools::wallet2::BackgroundMiningNo)
|
if (setup == tools::wallet2::BackgroundMiningNo)
|
||||||
{
|
{
|
||||||
MLOG_RED(el::Level::Warning, "Background mining not enabled. Run \"set setup-background-mining 1\" in wownero-wallet-cli to change.");
|
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user