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

Function send_outreq

plugins/libplugin.c:1108–1128  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1106}
1107
1108struct command_result *
1109send_outreq(const struct out_req *req)
1110{
1111 /* The "param" object. */
1112 if (req->errcb)
1113 json_object_end(req->js);
1114 json_object_end(req->js);
1115 json_stream_close(req->js, req->cmd);
1116
1117 /* We are about to hand control over to the RPC, so suspend
1118 * the current span. It'll be resumed as soon as we have a
1119 * result to pass to either the error or the success
1120 * callback. */
1121 trace_span_start("jsonrpc", req);
1122 trace_span_tag(req, "id", req->id);
1123 trace_span_suspend_may_free(req);
1124
1125 ld_rpc_send(req->cmd->plugin, req->js);
1126 notleak_with_children(req->cmd);
1127 return &pending;
1128}
1129
1130struct request_batch {
1131 size_t num_remaining;

Callers 15

default_refreshFunction · 0.70
channels_refreshFunction · 0.70
nodes_refreshFunction · 0.70
watch_forFunction · 0.70
refresh_by_created_indexFunction · 0.70
paginated_refreshFunction · 0.70
json_keysendFunction · 0.70
htlc_accepted_callFunction · 0.70
create_invoicereqFunction · 0.70
check_previous_invoiceFunction · 0.70
convert_currencyFunction · 0.70
handle_invoice_requestFunction · 0.70

Calls 4

json_object_endFunction · 0.85
json_stream_closeFunction · 0.85
trace_span_tagFunction · 0.85
ld_rpc_sendFunction · 0.85

Tested by 4

json_testrpcFunction · 0.40
json_checkthisFunction · 0.40
json_spamcommandFunction · 0.40
json_spamlistcommandFunction · 0.40