mirror of
https://github.com/monero-project/monero.git
synced 2025-07-23 13:40:43 -04:00
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:
parent
9292c1e7cd
commit
051ddbc741
5 changed files with 11 additions and 6 deletions
|
@ -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();
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue