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

Function jsonrpc_stream_fail_data

plugins/libplugin.c:478–486  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

476}
477
478struct json_stream *jsonrpc_stream_fail_data(struct command *cmd,
479 int code,
480 const char *err)
481{
482 struct json_stream *js = jsonrpc_stream_fail(cmd, code, err);
483
484 json_object_start(js, "data");
485 return js;
486}
487
488static struct command_result *command_complete_nojson(struct command *cmd,
489 struct json_stream *result)

Callers 2

openchannel_finishedFunction · 0.85

Calls 2

json_object_startFunction · 0.85
jsonrpc_stream_failFunction · 0.70

Tested by

no test coverage detected