mirror of
https://git.wownero.com/wownero/wownero.git
synced 2025-01-23 00:28:36 +00:00
simplewallet: tone down not mining warning
This commit is contained in:
parent
815d93ba24
commit
172966a0c3
@ -572,8 +572,7 @@ bool t_rpc_command_executor::mining_status() {
|
|||||||
uint64_t daily = 86400ull / mres.block_target * mres.block_reward * ratio;
|
uint64_t daily = 86400ull / mres.block_target * mres.block_reward * ratio;
|
||||||
uint64_t monthly = 86400ull / mres.block_target * 30.5 * mres.block_reward * ratio;
|
uint64_t monthly = 86400ull / mres.block_target * 30.5 * mres.block_reward * ratio;
|
||||||
uint64_t yearly = 86400ull / mres.block_target * 356 * mres.block_reward * ratio;
|
uint64_t yearly = 86400ull / mres.block_target * 356 * mres.block_reward * ratio;
|
||||||
tools::msg_writer() << "Expected: " << cryptonote::print_money(daily) << " monero daily, "
|
tools::msg_writer() << "Possible reward: " << cryptonote::print_money(monthly) << " WOW monthly, " << cryptonote::print_money(yearly) << " WOW yearly";
|
||||||
<< cryptonote::print_money(monthly) << " monero monthly, " << cryptonote::print_money(yearly) << " yearly";
|
|
||||||
}
|
}
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
|
@ -4746,7 +4746,7 @@ 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.");
|
message_writer() << tr("To enable automatic background mining run \"set setup-background-mining 1\".");
|
||||||
}
|
}
|
||||||
//----------------------------------------------------------------------------------------------------
|
//----------------------------------------------------------------------------------------------------
|
||||||
void simple_wallet::check_background_mining(const epee::wipeable_string &password)
|
void simple_wallet::check_background_mining(const epee::wipeable_string &password)
|
||||||
@ -4754,7 +4754,7 @@ 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.");
|
message_writer() << tr("To enable automatic background mining run \"set setup-background-mining 1\".");
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -4792,7 +4792,7 @@ 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.");
|
message_writer() << tr("To enable automatic background mining run \"set setup-background-mining 1\".");
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
m_wallet->setup_background_mining(tools::wallet2::BackgroundMiningYes);
|
m_wallet->setup_background_mining(tools::wallet2::BackgroundMiningYes);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user