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

Function command_failed

lightningd/jsonrpc.c:470–479  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

468}
469
470struct command_result *command_failed(struct command *cmd,
471 struct json_stream *result)
472{
473 assert(cmd->json_stream == result);
474 /* Have to close error */
475 json_object_end(result);
476 json_object_end(result);
477
478 return command_raw_complete(cmd, result);
479}
480
481struct command_result *command_fail(struct command *cmd, enum jsonrpc_errcode code,
482 const char *fmt, ...)

Callers 7

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

Calls 2

command_raw_completeFunction · 0.85
json_object_endFunction · 0.50

Tested by

no test coverage detected