@@ -148,7 +148,7 @@ void protocol_bitcoind_rpc::handle_receive_post(const code& ec,
148148 // to formulate response headers, isolating handlers from http semantics.
149149 set_post (post );
150150
151- if (const auto code = dispatcher_ .notify (request))
151+ if (const auto code = rpc_dispatcher_ .notify (request))
152152 stop (code);
153153}
154154
@@ -159,7 +159,7 @@ void protocol_bitcoind_rpc::handle_receive_post(const code& ec,
159159
160160// {"jsonrpc": "1.0", "id": "curltest", "method": "getbestblockhash", "params": []}
161161bool protocol_bitcoind_rpc::handle_get_best_block_hash (const code& ec,
162- interface ::get_best_block_hash) NOEXCEPT
162+ rpc_interface ::get_best_block_hash) NOEXCEPT
163163{
164164 if (stopped (ec))
165165 return false ;
@@ -175,109 +175,110 @@ bool protocol_bitcoind_rpc::handle_get_best_block_hash(const code& ec,
175175
176176// method<"getblock", string_t, optional<0_u32>>{ "blockhash", "verbosity" },
177177bool protocol_bitcoind_rpc::handle_get_block (const code& ec,
178- interface ::get_block, const std::string&, double ) NOEXCEPT
178+ rpc_interface ::get_block, const std::string&, double ) NOEXCEPT
179179{
180180 return !ec;
181181}
182182
183183bool protocol_bitcoind_rpc::handle_get_block_chain_info (const code& ec,
184- interface ::get_block_chain_info) NOEXCEPT
184+ rpc_interface ::get_block_chain_info) NOEXCEPT
185185{
186186 return !ec;
187187}
188188
189189bool protocol_bitcoind_rpc::handle_get_block_count (const code& ec,
190- interface ::get_block_count) NOEXCEPT
190+ rpc_interface ::get_block_count) NOEXCEPT
191191{
192192 return !ec;
193193}
194194
195195// method<"getblockfilter", string_t, optional<"basic"_t>>{ "blockhash", "filtertype" },
196196bool protocol_bitcoind_rpc::handle_get_block_filter (const code& ec,
197- interface::get_block_filter, const std::string&, const std::string&) NOEXCEPT
197+ rpc_interface::get_block_filter, const std::string&,
198+ const std::string&) NOEXCEPT
198199{
199200 return !ec;
200201}
201202
202203// method<"getblockhash", number_t>{ "height" },
203204bool protocol_bitcoind_rpc::handle_get_block_hash (const code& ec,
204- interface ::get_block_hash, network::rpc::number_t ) NOEXCEPT
205+ rpc_interface ::get_block_hash, network::rpc::number_t ) NOEXCEPT
205206{
206207 return !ec;
207208}
208209
209210// method<"getblockheader", string_t, optional<true>>{ "blockhash", "verbose" },
210211bool protocol_bitcoind_rpc::handle_get_block_header (const code& ec,
211- interface ::get_block_header, const std::string&, bool ) NOEXCEPT
212+ rpc_interface ::get_block_header, const std::string&, bool ) NOEXCEPT
212213{
213214 return !ec;
214215}
215216
216217// method<"getblockstats", string_t, optional<empty::array>>{ "hash_or_height", "stats" },
217218bool protocol_bitcoind_rpc::handle_get_block_stats (const code& ec,
218- interface ::get_block_stats, const std::string&,
219+ rpc_interface ::get_block_stats, const std::string&,
219220 const network::rpc::array_t &) NOEXCEPT
220221{
221222 return !ec;
222223}
223224
224225// method<"getchaintxstats", optional<-1_i32>, optional<""_t>>{ "nblocks", "blockhash" },
225226bool protocol_bitcoind_rpc::handle_get_chain_tx_stats (const code& ec,
226- interface ::get_chain_tx_stats, double , const std::string&) NOEXCEPT
227+ rpc_interface ::get_chain_tx_stats, double , const std::string&) NOEXCEPT
227228{
228229 return !ec;
229230}
230231
231232bool protocol_bitcoind_rpc::handle_get_chain_work (const code& ec,
232- interface ::get_chain_work) NOEXCEPT
233+ rpc_interface ::get_chain_work) NOEXCEPT
233234{
234235 return !ec;
235236}
236237
237238// method<"gettxout", string_t, number_t, optional<true>>{ "txid", "n", "include_mempool" },
238239bool protocol_bitcoind_rpc::handle_get_tx_out (const code& ec,
239- interface ::get_tx_out, const std::string&, double , bool ) NOEXCEPT
240+ rpc_interface ::get_tx_out, const std::string&, double , bool ) NOEXCEPT
240241{
241242 return !ec;
242243}
243244
244245bool protocol_bitcoind_rpc::handle_get_tx_out_set_info (const code& ec,
245- interface ::get_tx_out_set_info) NOEXCEPT
246+ rpc_interface ::get_tx_out_set_info) NOEXCEPT
246247{
247248 return !ec;
248249}
249250
250251// method<"pruneblockchain", number_t>{ "height" },
251252bool protocol_bitcoind_rpc::handle_prune_block_chain (const code& ec,
252- interface ::prune_block_chain, double ) NOEXCEPT
253+ rpc_interface ::prune_block_chain, double ) NOEXCEPT
253254{
254255 return !ec;
255256}
256257
257258bool protocol_bitcoind_rpc::handle_save_mem_pool (const code& ec,
258- interface ::save_mem_pool) NOEXCEPT
259+ rpc_interface ::save_mem_pool) NOEXCEPT
259260{
260261 return !ec;
261262}
262263
263264// method<"scantxoutset", string_t, optional<empty::array>>{ "action", "scanobjects" },
264265bool protocol_bitcoind_rpc::handle_scan_tx_out_set (const code& ec,
265- interface ::scan_tx_out_set, const std::string&,
266+ rpc_interface ::scan_tx_out_set, const std::string&,
266267 const network::rpc::array_t &) NOEXCEPT
267268{
268269 return !ec;
269270}
270271
271272// method<"verifychain", optional<4_u32>, optional<288_u32>>{ "checklevel", "nblocks" },
272273bool protocol_bitcoind_rpc::handle_verify_chain (const code& ec,
273- interface ::verify_chain, double , double ) NOEXCEPT
274+ rpc_interface ::verify_chain, double , double ) NOEXCEPT
274275{
275276 return !ec;
276277}
277278
278279// method<"verifytxoutset", string_t>{ "input_verify_flag" },
279280bool protocol_bitcoind_rpc::handle_verify_tx_out_set (const code& ec,
280- interface ::verify_tx_out_set, const std::string&) NOEXCEPT
281+ rpc_interface ::verify_tx_out_set, const std::string&) NOEXCEPT
281282{
282283 return !ec;
283284}
0 commit comments