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

Function new_inpay

lightningd/htlc_set.c:10–25  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

8#include <lightningd/peer_htlcs.h>
9
10static struct incoming_payment *new_inpay(const tal_t *ctx,
11 struct logger *log,
12 struct amount_msat msat,
13 void (*fail)(void *, const u8 *),
14 void (*succeeded)(void *,
15 const struct preimage *),
16 void *arg)
17{
18 struct incoming_payment *inpay = tal(ctx, struct incoming_payment);
19 inpay->log = log;
20 inpay->msat = msat;
21 inpay->fail = fail;
22 inpay->succeeded = succeeded;
23 inpay->arg = arg;
24 return inpay;
25}
26
27/* If an HTLC times out, we need to free entire set, since we could be
28 * processing it in invoice.c right now. */

Callers 1

htlc_set_add_Function · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected