@@ -32,7 +32,6 @@ using namespace system;
3232using namespace network ::rpc;
3333using namespace network ::http;
3434using namespace network ::json;
35- using namespace network ::monad;
3635using namespace std ::placeholders;
3736
3837BC_PUSH_WARNING (NO_THROW_IN_NOEXCEPT)
@@ -131,7 +130,7 @@ void protocol_bitcoind_rpc::handle_receive_post(const code& ec,
131130 }
132131
133132 // Endpoint accepts only json-rpc posts.
134- if (!post ->body ().contains <rpcin_value >())
133+ if (!post ->body ().contains <in_value >())
135134 {
136135 send_bad_request (*post );
137136 return ;
@@ -140,7 +139,7 @@ void protocol_bitcoind_rpc::handle_receive_post(const code& ec,
140139 // Get the parsed json-rpc request object.
141140 // v1 or v2 both supported, batch not yet supported.
142141 // v1 null id and v2 missing id implies notification and no response.
143- const auto & request = post ->body ().get <rpcin_value >().message ;
142+ const auto & request = post ->body ().get <in_value >().message ;
144143
145144 // The post is saved off during asynchonous handling and used in send_json
146145 // to formulate response headers, isolating handlers from http semantics.
@@ -408,7 +407,7 @@ void protocol_bitcoind_rpc::send_rpc(response_t&& model,
408407 add_common_headers (response, *request);
409408 add_access_control_headers (response, *request);
410409 response.set (field::content_type, json);
411- response.body () = rpcout_value
410+ response.body () = out_value
412411 {
413412 { .size_hint = size_hint }, std::move (model),
414413 };
0 commit comments