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

Function plugin_request_send

lightningd/plugin.c:2067–2079  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2065}
2066
2067void plugin_request_send(struct plugin *plugin,
2068 struct jsonrpc_request *req TAKES)
2069{
2070 /* Add to map so we can find it later when routing the response */
2071 tal_steal(plugin, req);
2072 strmap_add(&plugin->plugins->pending_requests, req->id, req);
2073 /* Add destructor in case plugin dies. */
2074 tal_add_destructor2(req, destroy_request, plugin);
2075 plugin_send(plugin, req->stream);
2076 /* plugin_send steals the stream, so remove the dangling
2077 * pointer here */
2078 req->stream = NULL;
2079}
2080
2081void *plugins_exclusive_loop(struct plugin **plugins)
2082{

Callers 10

json_checkmessageFunction · 0.70
plugin_send_getmanifestFunction · 0.70
plugin_configFunction · 0.70
plugin_hook_call_nextFunction · 0.70
plugin_hook_db_syncFunction · 0.70
config_pluginFunction · 0.70
bitcoin_plugin_sendFunction · 0.70
bitcoind_estimate_fees_Function · 0.70
json_invoiceFunction · 0.70

Calls 1

plugin_sendFunction · 0.85

Tested by

no test coverage detected