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

Function plugin_request_send

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

Source from the content-addressed store, hash-verified

2505}
2506
2507void plugin_request_send(struct plugin *plugin,
2508 struct jsonrpc_request *req)
2509{
2510 /* Add to map so we can find it later when routing the response */
2511 strmap_add(&plugin->pending_requests, req->id, req);
2512 /* Add destructor in case request is freed. */
2513 tal_add_destructor2(req, destroy_request, plugin);
2514
2515 plugin_send(plugin, req->stream);
2516 /* plugin_send steals the stream, so remove the dangling
2517 * pointer here */
2518 req->stream = NULL;
2519}
2520
2521void *plugins_exclusive_loop(struct plugin **plugins)
2522{

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