rpc: make mining_status RPC work when syncing

This commit is contained in:
moneromooo-monero 2017-02-23 20:40:28 +00:00
parent d666339853
commit 8262da8137
No known key found for this signature in database
GPG key ID: 686F07454D6CEFC3

View file

@ -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) 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(); const miner& lMiner = m_core.get_miner();
res.active = lMiner.is_mining(); res.active = lMiner.is_mining();