mirror of
https://github.com/monero-project/monero.git
synced 2024-12-27 07:29:25 -05:00
rpc: make mining_status RPC work when syncing
This commit is contained in:
parent
d666339853
commit
8262da8137
@ -665,7 +665,7 @@ namespace cryptonote
|
||||
//------------------------------------------------------------------------------------------------------------------------------
|
||||
bool core_rpc_server::on_mining_status(const COMMAND_RPC_MINING_STATUS::request& req, COMMAND_RPC_MINING_STATUS::response& res)
|
||||
{
|
||||
CHECK_CORE_READY();
|
||||
CHECK_CORE_BUSY();
|
||||
|
||||
const miner& lMiner = m_core.get_miner();
|
||||
res.active = lMiner.is_mining();
|
||||
|
Loading…
Reference in New Issue
Block a user