diff options
author | moneromooo-monero <moneromooo-monero@users.noreply.github.com> | 2018-04-13 18:12:17 +0100 |
---|---|---|
committer | moneromooo-monero <moneromooo-monero@users.noreply.github.com> | 2018-04-13 18:47:30 +0100 |
commit | 35d1269faca070e1ec8906d0683896f937685b97 (patch) | |
tree | 8e6f66431625c82af5a4cbfed6ea50c6a1bded36 /src/daemon/command_server.cpp | |
parent | Merge pull request #3618 (diff) | |
download | monero-35d1269faca070e1ec8906d0683896f937685b97.tar.xz |
daemon: add a version 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 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) |