aboutsummaryrefslogtreecommitdiff
path: root/src/daemon/command_server.cpp
diff options
context:
space:
mode:
authormoneromooo-monero <moneromooo-monero@users.noreply.github.com>2018-04-13 18:12:17 +0100
committermoneromooo-monero <moneromooo-monero@users.noreply.github.com>2018-04-13 18:48:02 +0100
commit41b95ad40ec078bc4cb6cd11b79d0f4aa6f8536e (patch)
tree60833c721fd8004644f376728700d55b4b98a6d8 /src/daemon/command_server.cpp
parentMerge pull request #3619 (diff)
downloadmonero-41b95ad40ec078bc4cb6cd11b79d0f4aa6f8536e.tar.xz
daemon: add a version command
Diffstat (limited to '')
-rw-r--r--src/daemon/command_server.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/daemon/command_server.cpp b/src/daemon/command_server.cpp
index a50dbea69..144603597 100644
--- a/src/daemon/command_server.cpp
+++ b/src/daemon/command_server.cpp
@@ -280,6 +280,11 @@ t_command_server::t_command_server(
, std::bind(&t_command_parser_executor::sync_info, &m_parser, p::_1)
, "Print information about the blockchain sync state."
);
+ m_command_lookup.set_handler(
+ "version"
+ , std::bind(&t_command_parser_executor::version, &m_parser, p::_1)
+ , "Print version information."
+ );
}
bool t_command_server::process_command_str(const std::string& cmd)