mirror of
https://github.com/monero-project/monero.git
synced 2025-12-26 20:53:52 -08:00
daemon/rpc: updates command and RPC
subcommands "check", "download", and "update". update is not yet implemented.
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user