mirror of
https://github.com/wownero/wownero.git
synced 2026-11-11 02:43:55 +01:00
tidy up miner msgs
This commit is contained in:
@@ -590,13 +590,13 @@ bool t_rpc_command_executor::mining_status() {
|
||||
}
|
||||
else
|
||||
{
|
||||
tools::msg_writer() << "Mining at " << get_mining_speed(mres.speed) << " with " << mres.threads_count << " threads";
|
||||
tools::msg_writer() << "\nMining at " << get_mining_speed(mres.speed) << " with " << mres.threads_count << " threads";
|
||||
}
|
||||
|
||||
tools::msg_writer() << "PoW algorithm: " << mres.pow_algorithm;
|
||||
if (mres.active || mres.is_background_mining_enabled)
|
||||
{
|
||||
tools::msg_writer() << "Mining address: " << mres.address;
|
||||
tools::msg_writer() << "Mining address:\n" << mres.address;
|
||||
}
|
||||
|
||||
if (mres.is_background_mining_enabled)
|
||||
@@ -608,16 +608,6 @@ bool t_rpc_command_executor::mining_status() {
|
||||
tools::msg_writer() << " Ignore battery: " << (mres.bg_ignore_battery ? "yes" : "no");
|
||||
}
|
||||
|
||||
if (!mining_busy && mres.active && mres.speed > 0 && mres.block_target > 0 && mres.difficulty > 0)
|
||||
{
|
||||
double ratio = mres.speed * mres.block_target / (double)mres.difficulty;
|
||||
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 yearly = 86400ull / mres.block_target * 356 * mres.block_reward * ratio;
|
||||
tools::msg_writer() << "Expected: " << cryptonote::print_money(daily) << " WOW daily, "
|
||||
<< cryptonote::print_money(monthly) << " WOW monthly, " << cryptonote::print_money(yearly) << " yearly";
|
||||
}
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user