From 59478c80dd01d00e16994a77e36a94cdbe3c9412 Mon Sep 17 00:00:00 2001 From: moneromooo-monero Date: Fri, 22 Feb 2019 20:17:45 +0000 Subject: daemon: new mining_status command --- src/daemon/command_server.cpp | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/daemon/command_server.cpp') diff --git a/src/daemon/command_server.cpp b/src/daemon/command_server.cpp index 96dea76b6..45a1e9d98 100644 --- a/src/daemon/command_server.cpp +++ b/src/daemon/command_server.cpp @@ -112,6 +112,11 @@ t_command_server::t_command_server( , std::bind(&t_command_parser_executor::stop_mining, &m_parser, p::_1) , "Stop mining." ); + m_command_lookup.set_handler( + "mining_status" + , std::bind(&t_command_parser_executor::mining_status, &m_parser, p::_1) + , "Show current mining status." + ); m_command_lookup.set_handler( "print_pool" , std::bind(&t_command_parser_executor::print_transaction_pool_long, &m_parser, p::_1) -- cgit v1.2.3