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

Function command_fail

lightningd/jsonrpc.c:569–582  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

567}
568
569struct command_result *command_fail(struct command *cmd, enum jsonrpc_errcode code,
570 const char *fmt, ...)
571{
572 const char *errmsg;
573 struct json_stream *r;
574 va_list ap;
575
576 va_start(ap, fmt);
577 errmsg = tal_vfmt(cmd, fmt, ap);
578 va_end(ap);
579 r = json_stream_fail_nodata(cmd, code, errmsg);
580
581 return command_failed(cmd, r);
582}
583
584struct json_filter **command_filter_ptr(struct command *cmd)
585{

Callers 15

check_utxo_blockFunction · 0.70
json_openchannel_abortFunction · 0.70
openchannel_bumpFunction · 0.70
json_openchannel_bumpFunction · 0.70
json_openchannel_signedFunction · 0.70
openchannel_invalid_psbtFunction · 0.70
json_openchannel_updateFunction · 0.70
init_set_feerateFunction · 0.70
openchannel_initFunction · 0.70
json_openchannel_initFunction · 0.70
json_queryratesFunction · 0.70

Calls 2

json_stream_fail_nodataFunction · 0.85
command_failedFunction · 0.70

Tested by

no test coverage detected