From d2d3a81d0e1ab88e50eb5c82e3e142e38235a546 Mon Sep 17 00:00:00 2001 From: xiphon Date: Wed, 15 Apr 2020 21:12:03 +0000 Subject: bootstrap_daemon: fix missing virtual destructor and lambda capture (clang warning) --- src/rpc/bootstrap_node_selector.h | 2 ++ src/rpc/core_rpc_server.cpp | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/src/rpc/bootstrap_node_selector.h b/src/rpc/bootstrap_node_selector.h index fc993719b..47722a008 100644 --- a/src/rpc/bootstrap_node_selector.h +++ b/src/rpc/bootstrap_node_selector.h @@ -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 next_node() = 0; }; diff --git a/src/rpc/core_rpc_server.cpp b/src/rpc/core_rpc_server.cpp index f097c93fa..aa4e3c5cd 100644 --- a/src/rpc/core_rpc_server.cpp +++ b/src/rpc/core_rpc_server.cpp @@ -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)); -- cgit v1.2.3