diff options
| author | Riccardo Spagni <ric@spagni.net> | 2015-05-30 22:31:29 +0200 |
|---|---|---|
| committer | Riccardo Spagni <ric@spagni.net> | 2015-05-30 22:31:31 +0200 |
| commit | 26fac96c5d863ae89021e25f33f82123f0ae0c1e (patch) | |
| tree | 1aa2f6e40076bc321dfa0cae3f956038a51c1159 /src/daemon/rpc_command_executor.cpp | |
| parent | b9371749968611ba5dabe85c10cc34a139710685 (diff) | |
| parent | 693a8bf7b104a81c85c52a4b2b19e256463b6c7f (diff) | |
| download | monzero-core-26fac96c5d863ae89021e25f33f82123f0ae0c1e.tar.gz monzero-core-26fac96c5d863ae89021e25f33f82123f0ae0c1e.tar.xz monzero-core-26fac96c5d863ae89021e25f33f82123f0ae0c1e.zip | |
Merge pull request #294
693a8bf rpc_command_executor: fix mining in testnet mode (moneromooo-monero)
d09be11 core_rpc_server: add a getter for the testnet flag (moneromooo-monero)
754f863 core_rpc_server: log some error messages to the console (moneromooo-monero)
4f0e8cf daemon: remove obsolete daemon_commands_handler.h (moneromooo-monero)
bac366e core_rpc_server: reenable print_pl (moneromooo-monero)
39a9508 net_peerlist: fix grayt/white naming mismatch (moneromooo-monero)
8069b3b blockchain_db: add a few const (moneromooo-monero)
0932476 wallet: add consts where appropriate (moneromooo-monero)
Diffstat (limited to 'src/daemon/rpc_command_executor.cpp')
| -rw-r--r-- | src/daemon/rpc_command_executor.cpp | 3 |
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"; |
