daemon: implement 'set_bootstrap_daemon' command

This commit is contained in:
xiphon
2019-08-21 13:04:20 +00:00
parent c9df9d683a
commit 063eebbd43
5 changed files with 64 additions and 0 deletions

View File

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