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.
This commit is contained in:
moneromooo-monero
2015-10-28 18:08:14 +00:00
parent 9292c1e7cd
commit 051ddbc741
5 changed files with 11 additions and 6 deletions
+1 -1
View File
@@ -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();