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

Function htlc_accepted_invoice_failed

plugins/keysend.c:328–340  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

326}
327
328static struct command_result *
329htlc_accepted_invoice_failed(struct command *cmd, const char *buf,
330 const jsmntok_t *error,
331 struct keysend_in *ki)
332{
333 plugin_log(cmd->plugin, LOG_BROKEN,
334 "Could not create invoice for keysend: %.*s",
335 json_tok_full_len(error),
336 json_tok_full(buf, error));
337 /* Continue, but don't change it: it will fail. */
338 return htlc_accepted_continue(cmd, NULL);
339
340}
341
342static struct command_result *htlc_accepted_call(struct command *cmd,
343 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