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

Function command_fail

lightningd/jsonrpc.c:481–494  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

479}
480
481struct command_result *command_fail(struct command *cmd, enum jsonrpc_errcode code,
482 const char *fmt, ...)
483{
484 const char *errmsg;
485 struct json_stream *r;
486 va_list ap;
487
488 va_start(ap, fmt);
489 errmsg = tal_vfmt(cmd, fmt, ap);
490 va_end(ap);
491 r = json_stream_fail_nodata(cmd, code, errmsg);
492
493 return command_failed(cmd, r);
494}
495
496struct command_result *command_still_pending(struct command *cmd)
497{

Callers 15

check_utxo_blockFunction · 0.70
json_openchannel_abortFunction · 0.70
json_openchannel_bumpFunction · 0.70
json_openchannel_signedFunction · 0.70
json_openchannel_updateFunction · 0.70
init_set_feerateFunction · 0.70
json_openchannel_initFunction · 0.70
json_queryratesFunction · 0.70
json_listconfigsFunction · 0.70
destroy_channelFunction · 0.70
channel_cleanup_commandsFunction · 0.70
json_signmessageFunction · 0.70

Calls 2

json_stream_fail_nodataFunction · 0.85
command_failedFunction · 0.70

Tested by

no test coverage detected