aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormoneromooo-monero <moneromooo-monero@users.noreply.github.com>2017-02-23 20:40:28 +0000
committermoneromooo-monero <moneromooo-monero@users.noreply.github.com>2017-02-23 20:40:28 +0000
commit8262da8137cb463d17f0beb77157346272c1edbe (patch)
treeeaa7dde3fad1a483d34e284159ec8c45ac32d0bc
parentMerge pull request #1775 (diff)
downloadmonero-8262da8137cb463d17f0beb77157346272c1edbe.tar.xz
rpc: make mining_status RPC work when syncing
-rw-r--r--src/rpc/core_rpc_server.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/rpc/core_rpc_server.cpp b/src/rpc/core_rpc_server.cpp
index ab17dfaf3..d79621de4 100644
--- a/src/rpc/core_rpc_server.cpp
+++ b/src/rpc/core_rpc_server.cpp
@@ -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();