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

Function htlc_accepted_invoice_failed

plugins/keysend.c:417–431  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

415}
416
417static struct command_result *
418htlc_accepted_invoice_failed(struct command *cmd,
419 const char *method,
420 const char *buf,
421 const jsmntok_t *error,
422 struct keysend_in *ki)
423{
424 plugin_log(cmd->plugin, LOG_BROKEN,
425 "Could not create invoice for keysend: %.*s",
426 json_tok_full_len(error),
427 json_tok_full(buf, error));
428 /* Continue, but don't change it: it will fail. */
429 return htlc_accepted_continue(cmd, NULL);
430
431}
432
433static struct command_result *htlc_accepted_call(struct command *cmd,
434 const char *buf,

Callers

nothing calls this directly

Calls 4

htlc_accepted_continueFunction · 0.85
plugin_logFunction · 0.70
json_tok_full_lenFunction · 0.50
json_tok_fullFunction · 0.50

Tested by

no test coverage detected