Merge pull request #5185

59478c80 daemon: new mining_status command (moneromooo-monero)
This commit is contained in:
Riccardo Spagni
2019-03-17 17:55:32 +02:00
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)