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

Function command_fail

plugins/libplugin.c:454–464  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

452
453/* Called by param() directly if it's malformed. */
454struct command_result *command_fail(struct command *cmd,
455 enum jsonrpc_errcode code, const char *fmt, ...)
456{
457 va_list ap;
458 struct command_result *res;
459
460 va_start(ap, fmt);
461 res = command_done_err(cmd, code, tal_vfmt(cmd, fmt, ap), NULL);
462 va_end(ap);
463 return res;
464}
465
466/* We invoke param for usage at registration time. */
467bool command_usage_only(const struct command *cmd)

Callers 15

json_keysendFunction · 0.70
param_outputsFunction · 0.70
signpsbt_doneFunction · 0.70
finish_txprepareFunction · 0.70
newaddr_doneFunction · 0.70
psbt_createdFunction · 0.70
param_unreleased_txidFunction · 0.70
listsendpays_doneFunction · 0.70
json_payFunction · 0.70
handle_invreq_responseFunction · 0.70
timeout_sent_invreqFunction · 0.70

Calls 1

command_done_errFunction · 0.85

Tested by

no test coverage detected