diff options
author | moneromooo-monero <moneromooo-monero@users.noreply.github.com> | 2015-10-25 21:18:03 +0000 |
---|---|---|
committer | moneromooo-monero <moneromooo-monero@users.noreply.github.com> | 2015-10-25 21:36:46 +0000 |
commit | 9caf52bf5a282bda0b70d8fdc6e39f74883e7043 (patch) | |
tree | 80463776e11d010234a28c67e8185f9ef2d8cc62 /src/daemon/command_server.cpp | |
parent | Merge pull request #437 (diff) | |
download | monero-9caf52bf5a282bda0b70d8fdc6e39f74883e7043.tar.xz |
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.
Diffstat (limited to 'src/daemon/command_server.cpp')
-rw-r--r-- | src/daemon/command_server.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/daemon/command_server.cpp b/src/daemon/command_server.cpp index 446379558..8714b2569 100644 --- a/src/daemon/command_server.cpp +++ b/src/daemon/command_server.cpp @@ -135,6 +135,11 @@ t_command_server::t_command_server( , "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) , "Stop the daemon" |