bootstrap_daemon: fix missing virtual destructor and lambda capture (clang warning)

This commit is contained in:
xiphon 2020-04-15 21:12:03 +00:00 committed by wowario
parent 9b70fad289
commit 2b8bab2132
No known key found for this signature in database
GPG key ID: 24DCBE762DE9C111
2 changed files with 3 additions and 1 deletions

View file

@ -54,6 +54,8 @@ namespace bootstrap_node
struct selector
{
virtual ~selector() = default;
virtual void handle_result(const std::string &address, bool success) = 0;
virtual boost::optional<node_info> next_node() = 0;
};

View file

@ -224,7 +224,7 @@ namespace cryptonote
}
else if (address == "auto")
{
auto get_nodes = [this, credits_per_hash_threshold]() {
auto get_nodes = [this]() {
return get_public_nodes(credits_per_hash_threshold);
};
m_bootstrap_daemon.reset(new bootstrap_daemon(std::move(get_nodes), rpc_payment_enabled));