mirror of
https://codeberg.org/anoncontributorxmr/monero.git
synced 2024-11-26 21:03:28 +01:00
bootstrap_daemon: fix missing virtual destructor and lambda capture (clang warning)
This commit is contained in:
parent
ecb8cc9df4
commit
d2d3a81d0e
@ -54,6 +54,8 @@ namespace bootstrap_node
|
|||||||
|
|
||||||
struct selector
|
struct selector
|
||||||
{
|
{
|
||||||
|
virtual ~selector() = default;
|
||||||
|
|
||||||
virtual void handle_result(const std::string &address, bool success) = 0;
|
virtual void handle_result(const std::string &address, bool success) = 0;
|
||||||
virtual boost::optional<node_info> next_node() = 0;
|
virtual boost::optional<node_info> next_node() = 0;
|
||||||
};
|
};
|
||||||
|
@ -224,7 +224,7 @@ namespace cryptonote
|
|||||||
}
|
}
|
||||||
else if (address == "auto")
|
else if (address == "auto")
|
||||||
{
|
{
|
||||||
auto get_nodes = [this, credits_per_hash_threshold]() {
|
auto get_nodes = [this]() {
|
||||||
return get_public_nodes(credits_per_hash_threshold);
|
return get_public_nodes(credits_per_hash_threshold);
|
||||||
};
|
};
|
||||||
m_bootstrap_daemon.reset(new bootstrap_daemon(std::move(get_nodes), rpc_payment_enabled));
|
m_bootstrap_daemon.reset(new bootstrap_daemon(std::move(get_nodes), rpc_payment_enabled));
|
||||||
|
Loading…
Reference in New Issue
Block a user