aboutsummaryrefslogtreecommitdiff
path: root/src/daemon/command_server.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_server.cpp
parentMerge pull request #5696 (diff)
downloadmonero-063eebbd434d25fc7880edfd31d33d602b9ff306.tar.xz
daemon: implement 'set_bootstrap_daemon' command
Diffstat (limited to 'src/daemon/command_server.cpp')
-rw-r--r--src/daemon/command_server.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/daemon/command_server.cpp b/src/daemon/command_server.cpp
index aecdda52c..757e072a4 100644
--- a/src/daemon/command_server.cpp
+++ b/src/daemon/command_server.cpp
@@ -310,6 +310,13 @@ t_command_server::t_command_server(
, std::bind(&t_command_parser_executor::check_blockchain_pruning, &m_parser, p::_1)
, "Check the blockchain pruning."
);
+ m_command_lookup.set_handler(
+ "set_bootstrap_daemon"
+ , std::bind(&t_command_parser_executor::set_bootstrap_daemon, &m_parser, p::_1)
+ , "set_bootstrap_daemon (auto | none | host[:port] [username] [password])"
+ , "URL of a 'bootstrap' remote daemon that the connected wallets can use while this daemon is still not fully synced.\n"
+ "Use 'auto' to enable automatic public nodes discovering and bootstrap daemon switching"
+ );
}
bool t_command_server::process_command_str(const std::string& cmd)