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

Function jsonrpc_stream_start

plugins/libplugin.c:429–438  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

427}
428
429static struct json_stream *jsonrpc_stream_start(struct command *cmd)
430{
431 struct json_stream *js = new_json_stream(cmd, cmd, NULL);
432
433 json_object_start(js, NULL);
434 json_add_string(js, "jsonrpc", "2.0");
435 json_add_id(js, cmd->id);
436
437 return js;
438}
439
440struct json_stream *jsonrpc_stream_success(struct command *cmd)
441{

Callers 6

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

Calls 4

new_json_streamFunction · 0.85
json_object_startFunction · 0.85
json_add_idFunction · 0.85
json_add_stringFunction · 0.50

Tested by

no test coverage detected