From 9caf52bf5a282bda0b70d8fdc6e39f74883e7043 Mon Sep 17 00:00:00 2001 From: moneromooo-monero Date: Sun, 25 Oct 2015 21:18:03 +0000 Subject: 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. --- src/daemon/command_parser_executor.cpp | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'src/daemon/command_parser_executor.cpp') diff --git a/src/daemon/command_parser_executor.cpp b/src/daemon/command_parser_executor.cpp index 7b0f4a66b..51e3231e5 100644 --- a/src/daemon/command_parser_executor.cpp +++ b/src/daemon/command_parser_executor.cpp @@ -75,6 +75,13 @@ bool t_command_parser_executor::show_difficulty(const std::vector& return m_executor.show_difficulty(); } +bool t_command_parser_executor::show_status(const std::vector& args) +{ + if (!args.empty()) return false; + + return m_executor.show_status(); +} + bool t_command_parser_executor::print_connections(const std::vector& args) { if (!args.empty()) return false; -- cgit v1.2.3