daemon: add a status command

Displays current block height and target, net hash, hard fork
basic info, and connections.
Useful as a basic user friendly "what's going on here" command.
This commit is contained in:
moneromooo-monero
2015-10-25 21:18:03 +00:00
parent 14dd279fe1
commit 9caf52bf5a
5 changed files with 71 additions and 0 deletions

View File

@@ -134,6 +134,11 @@ t_command_server::t_command_server(
, std::bind(&t_command_parser_executor::show_difficulty, &m_parser, p::_1)
, "Show difficulty"
);
m_command_lookup.set_handler(
"status"
, std::bind(&t_command_parser_executor::show_status, &m_parser, p::_1)
, "Show status"
);
m_command_lookup.set_handler(
"stop_daemon"
, std::bind(&t_command_parser_executor::stop_daemon, &m_parser, p::_1)