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

Function htlc_set_fulfill_htlc

lightningd/peer_htlcs.c:426–433  ·  view source on GitHub ↗

HTLC-specific wrappers */

Source from the content-addressed store, hash-verified

424
425/* HTLC-specific wrappers */
426static void htlc_set_fulfill_htlc(struct htlc_in *hin,
427 const struct preimage *preimage)
428{
429 /* mark that we filled -- needed for tagging coin mvt */
430 hin->we_filled = tal(hin, bool);
431 *hin->we_filled = true;
432 fulfill_htlc(hin, preimage);
433}
434
435static void handle_localpay(struct htlc_in *hin,
436 struct amount_msat amt_to_forward,

Callers

nothing calls this directly

Calls 1

fulfill_htlcFunction · 0.70

Tested by

no test coverage detected