aboutsummaryrefslogtreecommitdiff
path: root/src/daemon/command_parser_executor.cpp
diff options
context:
space:
mode:
authorxiphon <xiphon@protonmail.com>2019-08-21 13:04:20 +0000
committerxiphon <xiphon@protonmail.com>2019-08-23 12:09:02 +0000
commit063eebbd434d25fc7880edfd31d33d602b9ff306 (patch)
tree39f14a324e7e9185f742a7bfec649940acddbe47 /src/daemon/command_parser_executor.cpp
parentMerge pull request #5696 (diff)
downloadmonero-063eebbd434d25fc7880edfd31d33d602b9ff306.tar.xz
daemon: implement 'set_bootstrap_daemon' command
Diffstat (limited to 'src/daemon/command_parser_executor.cpp')
-rw-r--r--src/daemon/command_parser_executor.cpp14
1 files changed, 14 insertions, 0 deletions
diff --git a/src/daemon/command_parser_executor.cpp b/src/daemon/command_parser_executor.cpp
index 924447701..c1e46d00a 100644
--- a/src/daemon/command_parser_executor.cpp
+++ b/src/daemon/command_parser_executor.cpp
@@ -813,4 +813,18 @@ bool t_command_parser_executor::check_blockchain_pruning(const std::vector<std::
return m_executor.check_blockchain_pruning();
}
+bool t_command_parser_executor::set_bootstrap_daemon(const std::vector<std::string>& args)
+{
+ const size_t args_count = args.size();
+ if (args_count < 1 || args_count > 3)
+ {
+ return false;
+ }
+
+ return m_executor.set_bootstrap_daemon(
+ args[0] != "none" ? args[0] : std::string(),
+ args_count > 1 ? args[1] : std::string(),
+ args_count > 2 ? args[2] : std::string());
+}
+
} // namespace daemonize