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

Function command_failed

lightningd/jsonrpc.c:558–567  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

556}
557
558struct command_result *command_failed(struct command *cmd,
559 struct json_stream *result)
560{
561 assert(cmd->json_stream == result);
562 /* Have to close error */
563 json_object_end(result);
564 json_object_end(result);
565
566 return command_raw_complete(cmd, result);
567}
568
569struct command_result *command_fail(struct command *cmd, enum jsonrpc_errcode code,
570 const char *fmt, ...)

Callers 9

listnodes_doneFunction · 0.70
sendpay_failFunction · 0.70
send_payment_coreFunction · 0.70
injectonion_failFunction · 0.70
json_injectpaymentonionFunction · 0.70
command_failFunction · 0.70
tell_waiterFunction · 0.70
json_delinvoiceFunction · 0.70
fail_existsFunction · 0.70

Calls 2

json_object_endFunction · 0.85
command_raw_completeFunction · 0.85

Tested by

no test coverage detected