mirror of
https://github.com/monero-project/monero.git
synced 2025-12-27 13:13:31 -08:00
remerged; commands JSON. logging upgrade. doxygen
This commit is contained in:
@@ -296,4 +296,41 @@ bool t_command_parser_executor::set_limit_down(const std::vector<std::string>& a
|
||||
|
||||
return m_executor.set_limit_down(limit);
|
||||
}
|
||||
|
||||
bool t_command_parser_executor::fast_exit(const std::vector<std::string>& args)
|
||||
{
|
||||
if (!args.empty()) return false;
|
||||
return m_executor.fast_exit();
|
||||
}
|
||||
|
||||
bool t_command_parser_executor::out_peers(const std::vector<std::string>& args)
|
||||
{
|
||||
if (args.empty()) return false;
|
||||
|
||||
unsigned int limit;
|
||||
try {
|
||||
limit = std::stoi(args[0]);
|
||||
}
|
||||
|
||||
catch(std::invalid_argument& ex) {
|
||||
_erro("stoi exception");
|
||||
return false;
|
||||
}
|
||||
|
||||
return m_executor.out_peers(limit);
|
||||
}
|
||||
|
||||
bool t_command_parser_executor::start_save_graph(const std::vector<std::string>& args)
|
||||
{
|
||||
if (!args.empty()) return false;
|
||||
return m_executor.start_save_graph();
|
||||
}
|
||||
|
||||
bool t_command_parser_executor::stop_save_graph(const std::vector<std::string>& args)
|
||||
{
|
||||
if (!args.empty()) return false;
|
||||
return m_executor.stop_save_graph();
|
||||
}
|
||||
|
||||
|
||||
} // namespace daemonize
|
||||
|
||||
Reference in New Issue
Block a user