aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormoneromooo-monero <moneromooo-monero@users.noreply.github.com>2015-05-28 23:14:58 +0100
committermoneromooo-monero <moneromooo-monero@users.noreply.github.com>2015-05-28 23:14:58 +0100
commit693a8bf7b104a81c85c52a4b2b19e256463b6c7f (patch)
treeb9562d6b67fc2719ec68087ab1f93338fec6f0a4
parentcore_rpc_server: add a getter for the testnet flag (diff)
downloadmonero-693a8bf7b104a81c85c52a4b2b19e256463b6c7f.tar.xz
rpc_command_executor: fix mining in testnet mode
-rw-r--r--src/daemon/rpc_command_executor.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/daemon/rpc_command_executor.cpp b/src/daemon/rpc_command_executor.cpp
index 79b52711a..4f6d0228a 100644
--- a/src/daemon/rpc_command_executor.cpp
+++ b/src/daemon/rpc_command_executor.cpp
@@ -621,11 +621,10 @@ bool t_rpc_command_executor::print_transaction_pool_short() {
return true;
}
-// TODO: update this for testnet
bool t_rpc_command_executor::start_mining(cryptonote::account_public_address address, uint64_t num_threads) {
cryptonote::COMMAND_RPC_START_MINING::request req;
cryptonote::COMMAND_RPC_START_MINING::response res;
- req.miner_address = cryptonote::get_account_address_as_str(false, address);
+ req.miner_address = cryptonote::get_account_address_as_str(m_rpc_server->is_testnet(), address);
req.threads_count = num_threads;
std::string fail_message = "Mining did not start";