diff options
author | moneromooo-monero <moneromooo-monero@users.noreply.github.com> | 2017-02-24 23:16:13 +0000 |
---|---|---|
committer | moneromooo-monero <moneromooo-monero@users.noreply.github.com> | 2017-02-24 23:18:27 +0000 |
commit | ea873ceb2c7dafee1cd093138e4bfb0a2e8b6c95 (patch) | |
tree | f34070b2c18ea3d208616e518d059bb51fa6d5d4 /src/daemon/command_server.cpp | |
parent | Merge pull request #1798 (diff) | |
download | monero-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_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 4a063268f..0081e00dc 100644 --- a/src/daemon/command_server.cpp +++ b/src/daemon/command_server.cpp @@ -243,6 +243,11 @@ t_command_server::t_command_server( , std::bind(&t_command_parser_executor::print_blockchain_dynamic_stats, &m_parser, p::_1) , "Print information about current blockchain dynamic state" ); + m_command_lookup.set_handler( + "update" + , std::bind(&t_command_parser_executor::update, &m_parser, p::_1) + , "subcommands: check (check if an update is available), download (download it is there is), update (not implemented)" + ); } bool t_command_server::process_command_str(const std::string& cmd) |