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

Function jsonrpc_stream_fail_data

plugins/libplugin.c:468–476  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

466}
467
468struct json_stream *jsonrpc_stream_fail_data(struct command *cmd,
469 int code,
470 const char *err)
471{
472 struct json_stream *js = jsonrpc_stream_fail(cmd, code, err);
473
474 json_object_start(js, "data");
475 return js;
476}
477
478static struct command_result *command_complete_nojson(struct command *cmd,
479 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