mirror of
https://github.com/monero-project/monero.git
synced 2025-05-04 13:05:03 -04:00
Added a note about smart mining to status command. Fixed up a bug where I was resetting bg mining enabled instead of started. Upped the miner threshold. Also moved setting of enabled on start above miner thread creation since starting with true, then stopping, then starting with false resulted in race condition.
This commit is contained in:
parent
e4dfd2fb63
commit
ad95e65028
5 changed files with 8 additions and 5 deletions
|
@ -377,7 +377,7 @@ bool t_rpc_command_executor::show_status() {
|
|||
% (unsigned long long)(ires.target_height >= ires.height ? ires.target_height : ires.height)
|
||||
% get_sync_percentage(ires)
|
||||
% (ires.testnet ? "testnet" : "mainnet")
|
||||
% (mining_busy ? "syncing" : mres.active ? "mining at " + get_mining_speed(mres.speed) : "not mining")
|
||||
% (mining_busy ? "syncing" : mres.active ? ( ( mres.is_background_mining_enabled ? "smart " : "" ) + std::string("mining at ") + get_mining_speed(mres.speed) ) : "not mining")
|
||||
% get_mining_speed(ires.difficulty / ires.target)
|
||||
% (unsigned)hfres.version
|
||||
% get_fork_extra_info(hfres.earliest_height, ires.height, ires.target)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue