From 1c63ce79cf4984e8b28a108b00bf704c382370e0 Mon Sep 17 00:00:00 2001 From: evoskuil Date: Fri, 26 Dec 2025 18:25:37 -0500 Subject: [PATCH] Adapt to rename of network::monad namespace. --- src/protocols/protocol_bitcoind_rpc.cpp | 7 +++---- src/protocols/protocol_html.cpp | 1 - 2 files changed, 3 insertions(+), 5 deletions(-) diff --git a/src/protocols/protocol_bitcoind_rpc.cpp b/src/protocols/protocol_bitcoind_rpc.cpp index 35f7c0af..a54d97b8 100644 --- a/src/protocols/protocol_bitcoind_rpc.cpp +++ b/src/protocols/protocol_bitcoind_rpc.cpp @@ -32,7 +32,6 @@ using namespace system; using namespace network::rpc; using namespace network::http; using namespace network::json; -using namespace network::monad; using namespace std::placeholders; BC_PUSH_WARNING(NO_THROW_IN_NOEXCEPT) @@ -131,7 +130,7 @@ void protocol_bitcoind_rpc::handle_receive_post(const code& ec, } // Endpoint accepts only json-rpc posts. - if (!post->body().contains()) + if (!post->body().contains()) { send_bad_request(*post); return; @@ -140,7 +139,7 @@ void protocol_bitcoind_rpc::handle_receive_post(const code& ec, // Get the parsed json-rpc request object. // v1 or v2 both supported, batch not yet supported. // v1 null id and v2 missing id implies notification and no response. - const auto& request = post->body().get().message; + const auto& request = post->body().get().message; // The post is saved off during asynchonous handling and used in send_json // to formulate response headers, isolating handlers from http semantics. @@ -408,7 +407,7 @@ void protocol_bitcoind_rpc::send_rpc(response_t&& model, add_common_headers(response, *request); add_access_control_headers(response, *request); response.set(field::content_type, json); - response.body() = rpcout_value + response.body() = out_value { { .size_hint = size_hint }, std::move(model), }; diff --git a/src/protocols/protocol_html.cpp b/src/protocols/protocol_html.cpp index 386a1e34..b2e853f1 100644 --- a/src/protocols/protocol_html.cpp +++ b/src/protocols/protocol_html.cpp @@ -166,7 +166,6 @@ void protocol_html::send_json(boost::json::value&& model, size_t size_hint, const request& request) NOEXCEPT { BC_ASSERT(stranded()); - using namespace network::monad; response response{ status::ok, request.version() }; add_common_headers(response, request); add_access_control_headers(response, request);