From d917124bffccc672e645f7c5e0acc21225a47349 Mon Sep 17 00:00:00 2001 From: orignal Date: Tue, 13 Oct 2020 20:43:37 -0400 Subject: [PATCH] fixed build with boost >= 1.70 --- src/bitcoinrpc.cpp | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/src/bitcoinrpc.cpp b/src/bitcoinrpc.cpp index fcd004a..adbeb9f 100644 --- a/src/bitcoinrpc.cpp +++ b/src/bitcoinrpc.cpp @@ -591,7 +591,7 @@ public: bool connect(const std::string& server, const std::string& port) { #if (BOOST_VERSION >= 107000) // boost >= 1.70 - ip::tcp::resolver resolver(stream.get_executor().context()); + ip::tcp::resolver resolver(*rpc_io_service); #else ip::tcp::resolver resolver(stream.get_io_service()); #endif @@ -630,11 +630,7 @@ class AcceptedConnectionImpl : public AcceptedConnection { public: AcceptedConnectionImpl( -#if (BOOST_VERSION >= 107000) // boost >= 1.70 - asio::io_context& io_service, -#else asio::io_service& io_service, -#endif ssl::context &context, bool fUseSSL) : sslStream(io_service, context), @@ -686,7 +682,7 @@ static void RPCListen(boost::shared_ptr< basic_socket_acceptor= 107000) // boost >= 1.70 - AcceptedConnectionImpl* conn = new AcceptedConnectionImpl(acceptor->get_executor().context(), context, fUseSSL); + AcceptedConnectionImpl* conn = new AcceptedConnectionImpl(*rpc_io_service, context, fUseSSL); #else AcceptedConnectionImpl* conn = new AcceptedConnectionImpl(acceptor->get_io_service(), context, fUseSSL); #endif