aboutsummaryrefslogtreecommitdiff
path: root/src/daemon/command_parser_executor.cpp
diff options
context:
space:
mode:
authormoneromooo-monero <moneromooo-monero@users.noreply.github.com>2015-10-25 21:18:03 +0000
committermoneromooo-monero <moneromooo-monero@users.noreply.github.com>2015-10-25 21:36:46 +0000
commit9caf52bf5a282bda0b70d8fdc6e39f74883e7043 (patch)
tree80463776e11d010234a28c67e8185f9ef2d8cc62 /src/daemon/command_parser_executor.cpp
parentMerge pull request #437 (diff)
downloadmonero-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_parser_executor.cpp')
-rw-r--r--src/daemon/command_parser_executor.cpp7
1 files changed, 7 insertions, 0 deletions
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<std::string>&
return m_executor.show_difficulty();
}
+bool t_command_parser_executor::show_status(const std::vector<std::string>& args)
+{
+ if (!args.empty()) return false;
+
+ return m_executor.show_status();
+}
+
bool t_command_parser_executor::print_connections(const std::vector<std::string>& args)
{
if (!args.empty()) return false;