MCPcopy Create free account
hub / github.com/ElementsProject/lightning / bitcoin_plugin_send

Function bitcoin_plugin_send

lightningd/bitcoind.c:122–130  ·  view source on GitHub ↗

Send a request to the Bitcoin plugin which registered that method, * if it's still alive. */

Source from the content-addressed store, hash-verified

120/* Send a request to the Bitcoin plugin which registered that method,
121 * if it's still alive. */
122static void bitcoin_plugin_send(struct bitcoind *bitcoind,
123 struct jsonrpc_request *req)
124{
125 struct plugin *plugin = strmap_get(&bitcoind->pluginsmap, req->method);
126 if (!plugin)
127 fatal("Bitcoin backend plugin for %s died.", req->method);
128
129 plugin_request_send(plugin, req);
130}
131
132/* `estimatefees`
133 *

Callers 4

bitcoind_sendrawtx_Function · 0.85
bitcoind_getchaininfo_Function · 0.85
bitcoind_getutxout_Function · 0.85

Calls 2

fatalFunction · 0.70
plugin_request_sendFunction · 0.70

Tested by

no test coverage detected