aboutsummaryrefslogtreecommitdiff
path: root/src/daemon/command_parser_executor.cpp
diff options
context:
space:
mode:
authormoneromooo-monero <moneromooo-monero@users.noreply.github.com>2017-02-24 23:16:13 +0000
committermoneromooo-monero <moneromooo-monero@users.noreply.github.com>2017-02-24 23:18:27 +0000
commitea873ceb2c7dafee1cd093138e4bfb0a2e8b6c95 (patch)
treef34070b2c18ea3d208616e518d059bb51fa6d5d4 /src/daemon/command_parser_executor.cpp
parentMerge pull request #1798 (diff)
downloadmonero-ea873ceb2c7dafee1cd093138e4bfb0a2e8b6c95.tar.xz
daemon/rpc: updates command and RPC
subcommands "check", "download", and "update". update is not yet implemented.
Diffstat (limited to 'src/daemon/command_parser_executor.cpp')
-rw-r--r--src/daemon/command_parser_executor.cpp11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/daemon/command_parser_executor.cpp b/src/daemon/command_parser_executor.cpp
index 8daaac611..4e6e83eb5 100644
--- a/src/daemon/command_parser_executor.cpp
+++ b/src/daemon/command_parser_executor.cpp
@@ -552,4 +552,15 @@ bool t_command_parser_executor::print_blockchain_dynamic_stats(const std::vector
return m_executor.print_blockchain_dynamic_stats(nblocks);
}
+bool t_command_parser_executor::update(const std::vector<std::string>& args)
+{
+ if(args.size() != 1)
+ {
+ std::cout << "Exactly one parameter is needed: check, download, or update" << std::endl;
+ return false;
+ }
+
+ return m_executor.update(args.front());
+}
+
} // namespace daemonize