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

Function invoice_payload_remove_set

lightningd/invoice.c:216–221  ·  view source on GitHub ↗

Set times out or HTLC deleted? Remove set ptr from payload so we * know to ignore plugin return */

Source from the content-addressed store, hash-verified

214/* Set times out or HTLC deleted? Remove set ptr from payload so we
215 * know to ignore plugin return */
216static void invoice_payload_remove_set(struct htlc_set *set,
217 struct invoice_payment_hook_payload *payload)
218{
219 assert(payload->set == set);
220 payload->set = NULL;
221}
222
223/* Returns magic value to send generic incorrect_or_unknown_payment_details */
224static const u8 *hook_gives_failmsg(const tal_t *ctx,

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected