aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRiccardo Spagni <ric@spagni.net>2017-02-24 11:57:03 +0200
committerRiccardo Spagni <ric@spagni.net>2017-02-24 11:57:03 +0200
commit089df0a7a41003ee508bf0523fcd97e4ac3ab58e (patch)
treea1f5c0eb7e915c02c1db8f2ce5b6a8b1aa78e5e7
parentMerge pull request #1779 (diff)
parentrpc: make mining_status RPC work when syncing (diff)
downloadmonero-089df0a7a41003ee508bf0523fcd97e4ac3ab58e.tar.xz
Merge pull request #1780
8262da81 rpc: make mining_status RPC work when syncing (moneromooo-monero)
-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();