From 051ddbc741b1b703f5d58193ea770b13887d4e49 Mon Sep 17 00:00:00 2001 From: moneromooo-monero Date: Wed, 28 Oct 2015 18:08:14 +0000 Subject: 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. --- src/daemon/rpc_command_executor.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/daemon/rpc_command_executor.h') 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(); -- cgit v1.2.3