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

Function send_outreq

plugins/libplugin.c:1118–1138  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1116}
1117
1118struct command_result *
1119send_outreq(const struct out_req *req)
1120{
1121 /* The "param" object. */
1122 if (req->errcb)
1123 json_object_end(req->js);
1124 json_object_end(req->js);
1125 json_stream_close(req->js, req->cmd);
1126
1127 /* We are about to hand control over to the RPC, so suspend
1128 * the current span. It'll be resumed as soon as we have a
1129 * result to pass to either the error or the success
1130 * callback. */
1131 trace_span_start("jsonrpc", req);
1132 trace_span_tag(req, "id", req->id);
1133 trace_span_suspend_may_free(req);
1134
1135 ld_rpc_send(req->cmd->plugin, req->js);
1136 notleak_with_children(req->cmd);
1137 return &pending;
1138}
1139
1140struct request_batch {
1141 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