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

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