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

Function json_stream_fail

lightningd/jsonrpc.c:621–629  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

619}
620
621struct json_stream *json_stream_fail(struct command *cmd,
622 enum jsonrpc_errcode code,
623 const char *errmsg)
624{
625 struct json_stream *r = json_stream_fail_nodata(cmd, code, errmsg);
626
627 json_object_start(r, "data");
628 return r;
629}
630
631static struct command_result *command_exec(struct json_connection *jcon,
632 struct command *cmd,

Callers 6

listnodes_doneFunction · 0.70
sendpay_failFunction · 0.70
send_payment_coreFunction · 0.70
tell_waiterFunction · 0.70
json_delinvoiceFunction · 0.70
fail_existsFunction · 0.70

Calls 2

json_stream_fail_nodataFunction · 0.85
json_object_startFunction · 0.50

Tested by

no test coverage detected