mirror of
https://github.com/monero-project/monero.git
synced 2025-08-22 21:55:10 -04:00
Improvements in JSON RPC
This commit is contained in:
parent
29c2859a3e
commit
a401a02ddb
24 changed files with 296 additions and 150 deletions
|
@ -48,7 +48,8 @@ namespace cryptonote
|
|||
m_last_hr_merge_time(0),
|
||||
m_hashes(0),
|
||||
m_do_print_hashrate(false),
|
||||
m_do_mining(false)
|
||||
m_do_mining(false),
|
||||
m_current_hash_rate(0)
|
||||
{
|
||||
|
||||
}
|
||||
|
@ -225,7 +226,10 @@ namespace cryptonote
|
|||
//-----------------------------------------------------------------------------------------------------
|
||||
uint64_t miner::get_speed()
|
||||
{
|
||||
return m_current_hash_rate;
|
||||
if(is_mining())
|
||||
return m_current_hash_rate;
|
||||
else
|
||||
return 0;
|
||||
}
|
||||
//-----------------------------------------------------------------------------------------------------
|
||||
void miner::send_stop_signal()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue