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

Function new_simple_htlc

common/htlc_wire.c:27–39  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

25}
26
27struct simple_htlc *new_simple_htlc(const tal_t *ctx,
28 enum side side,
29 struct amount_msat amount,
30 const struct sha256 *payment_hash,
31 u32 cltv_expiry)
32{
33 struct simple_htlc *simple = tal(ctx, struct simple_htlc);
34 simple->side = side;
35 simple->amount = amount;
36 simple->payment_hash = *payment_hash;
37 simple->cltv_expiry = cltv_expiry;
38 return simple;
39}
40
41struct existing_htlc *new_existing_htlc(const tal_t *ctx,
42 u64 id,

Callers 1

collect_htlcsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected