daemon: new mining_status command

This commit is contained in:
moneromooo-monero
2019-02-22 20:17:45 +00:00
parent 31bdf7bd11
commit 59478c80dd
9 changed files with 134 additions and 7 deletions

View File

@@ -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)