mirror of
https://github.com/monero-project/monero.git
synced 2025-12-29 14:13:30 -08:00
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:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user