aboutsummaryrefslogtreecommitdiff
path: root/src/daemon/rpc_command_executor.h
diff options
context:
space:
mode:
authormoneromooo-monero <moneromooo-monero@users.noreply.github.com>2015-10-28 18:08:14 +0000
committermoneromooo-monero <moneromooo-monero@users.noreply.github.com>2015-10-28 18:09:36 +0000
commit051ddbc741b1b703f5d58193ea770b13887d4e49 (patch)
tree0592af68b26102813ca855fe0a0cb38457b2df48 /src/daemon/rpc_command_executor.h
parentMerge pull request #453 (diff)
downloadmonero-051ddbc741b1b703f5d58193ea770b13887d4e49.tar.xz
rpc: fix start_mining and status RPC crashes
They check whether they're running on testnet by accessing the m_rpc_server object, which does not exist when in RPC mode. Also, fix hard_fork_info being called with the wrong API.
Diffstat (limited to 'src/daemon/rpc_command_executor.h')
-rw-r--r--src/daemon/rpc_command_executor.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/daemon/rpc_command_executor.h b/src/daemon/rpc_command_executor.h
index 5df089be2..778b73acb 100644
--- a/src/daemon/rpc_command_executor.h
+++ b/src/daemon/rpc_command_executor.h
@@ -95,7 +95,7 @@ public:
bool print_transaction_pool_short();
- bool start_mining(cryptonote::account_public_address address, uint64_t num_threads);
+ bool start_mining(cryptonote::account_public_address address, uint64_t num_threads, bool testnet);
bool stop_mining();