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

Function bitcoin_plugin_send

lightningd/bitcoind.c:146–154  ·  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

144/* Send a request to the Bitcoin plugin which registered that method,
145 * if it's still alive. */
146static void bitcoin_plugin_send(struct bitcoind *bitcoind,
147 struct jsonrpc_request *req)
148{
149 struct plugin *plugin = strmap_get(&bitcoind->pluginsmap, req->method);
150 if (!plugin)
151 fatal("Bitcoin backend plugin for %s died.", req->method);
152
153 plugin_request_send(plugin, req);
154}
155
156/* `estimatefees`
157 *

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