daemon/rpc: updates command and RPC

subcommands "check", "download", and "update".
update is not yet implemented.
This commit is contained in:
moneromooo-monero
2017-02-24 23:16:13 +00:00
parent beee286c7b
commit ea873ceb2c
8 changed files with 199 additions and 0 deletions

View File

@@ -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)