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

Function plugin_request_send

lightningd/plugin.c:2519–2531  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2517}
2518
2519void plugin_request_send(struct plugin *plugin,
2520 struct jsonrpc_request *req)
2521{
2522 /* Add to map so we can find it later when routing the response */
2523 strmap_add(&plugin->pending_requests, req->id, req);
2524 /* Add destructor in case request is freed. */
2525 tal_add_destructor2(req, destroy_request, plugin);
2526
2527 plugin_send(plugin, req->stream);
2528 /* plugin_send steals the stream, so remove the dangling
2529 * pointer here */
2530 req->stream = NULL;
2531}
2532
2533void *plugins_exclusive_loop(struct plugin **plugins)
2534{

Callers 12

json_checkmessageFunction · 0.70
plugin_rpcmethod_checkFunction · 0.70
plugin_send_getmanifestFunction · 0.70
plugin_configFunction · 0.70
plugin_set_dynamic_optFunction · 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