daemon: add a print_pool_stats daemon command

Helps see what's going on now that Monero is getting used
This commit is contained in:
moneromooo-monero
2016-10-23 12:11:07 +01:00
parent 4f6ea2eb6a
commit 839280d5fc
6 changed files with 73 additions and 0 deletions

View File

@@ -110,6 +110,11 @@ t_command_server::t_command_server(
, std::bind(&t_command_parser_executor::print_transaction_pool_short, &m_parser, p::_1)
, "Print transaction pool (short format)"
);
m_command_lookup.set_handler(
"print_pool_stats"
, std::bind(&t_command_parser_executor::print_transaction_pool_stats, &m_parser, p::_1)
, "Print transaction pool statistics"
);
m_command_lookup.set_handler(
"show_hr"
, std::bind(&t_command_parser_executor::show_hash_rate, &m_parser, p::_1)