aboutsummaryrefslogtreecommitdiff
path: root/src/daemon/command_parser_executor.cpp
diff options
context:
space:
mode:
authorNathan Dorfman <ndorf@rtfm.net>2019-10-24 15:53:12 -0600
committerNathan Dorfman <ndorf@rtfm.net>2019-11-12 17:57:36 -0700
commit32937809928ae2204f9eaf1f4995fb1681bd52fd (patch)
tree3d37987634835cdea13251fc38f04c83d623866c /src/daemon/command_parser_executor.cpp
parentMerge pull request #6097 (diff)
downloadmonero-32937809928ae2204f9eaf1f4995fb1681bd52fd.tar.xz
daemon: Use rpc for "version" command
Diffstat (limited to 'src/daemon/command_parser_executor.cpp')
-rw-r--r--src/daemon/command_parser_executor.cpp4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/daemon/command_parser_executor.cpp b/src/daemon/command_parser_executor.cpp
index b827221f6..99a460c78 100644
--- a/src/daemon/command_parser_executor.cpp
+++ b/src/daemon/command_parser_executor.cpp
@@ -28,7 +28,6 @@
#include "common/dns_utils.h"
#include "common/command_line.h"
-#include "version.h"
#include "daemon/command_parser_executor.h"
#undef MONERO_DEFAULT_LOG_CATEGORY
@@ -803,8 +802,7 @@ bool t_command_parser_executor::rpc_payments(const std::vector<std::string>& arg
bool t_command_parser_executor::version(const std::vector<std::string>& args)
{
- std::cout << "Monero '" << MONERO_RELEASE_NAME << "' (v" << MONERO_VERSION_FULL << ")" << std::endl;
- return true;
+ return m_executor.version();
}
bool t_command_parser_executor::prune_blockchain(const std::vector<std::string>& args)