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

Function jsonrpc_stream_start

plugins/libplugin.c:242–251  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

240}
241
242static struct json_stream *jsonrpc_stream_start(struct command *cmd)
243{
244 struct json_stream *js = new_json_stream(cmd, cmd, NULL);
245
246 json_object_start(js, NULL);
247 json_add_string(js, "jsonrpc", "2.0");
248 json_add_string(js, "id", cmd->id);
249
250 return js;
251}
252
253struct json_stream *jsonrpc_stream_success(struct command *cmd)
254{

Callers 5

jsonrpc_stream_successFunction · 0.85
jsonrpc_stream_failFunction · 0.85
command_done_rawFunction · 0.85
command_successFunction · 0.85
command_done_errFunction · 0.85

Calls 3

new_json_streamFunction · 0.85
json_object_startFunction · 0.50
json_add_stringFunction · 0.50

Tested by

no test coverage detected