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

Function command_fail

plugins/libplugin.c:652–662  ·  view source on GitHub ↗

Called by param() directly if it's malformed. */

Source from the content-addressed store, hash-verified

650
651/* Called by param() directly if it's malformed. */
652struct command_result *command_fail(struct command *cmd,
653 enum jsonrpc_errcode code, const char *fmt, ...)
654{
655 va_list ap;
656 struct command_result *res;
657
658 va_start(ap, fmt);
659 res = command_done_err(cmd, code, tal_vfmt(cmd, fmt, ap), NULL);
660 va_end(ap);
661 return res;
662}
663
664/* We invoke param for usage at registration time. */
665bool command_usage_only(const struct command *cmd)

Callers 15

refresh_completeFunction · 0.70
process_json_objFunction · 0.70
process_json_listFunction · 0.70
default_list_doneFunction · 0.70
json_sqlFunction · 0.70
json_keysendFunction · 0.70
param_outputsFunction · 0.70
signpsbt_doneFunction · 0.70
finish_txprepareFunction · 0.70
psbt_createdFunction · 0.70
param_unreleased_txidFunction · 0.70
newaddr_sweep_doneFunction · 0.70

Calls 1

command_done_errFunction · 0.85

Tested by

no test coverage detected