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

Function command_fail

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

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

Source from the content-addressed store, hash-verified

660
661/* Called by param() directly if it's malformed. */
662struct command_result *command_fail(struct command *cmd,
663 enum jsonrpc_errcode code, const char *fmt, ...)
664{
665 va_list ap;
666 struct command_result *res;
667
668 va_start(ap, fmt);
669 res = command_done_err(cmd, code, tal_vfmt(cmd, fmt, ap), NULL);
670 va_end(ap);
671 return res;
672}
673
674/* We invoke param for usage at registration time. */
675bool 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