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

Function fromwire_simple_htlc

common/htlc_wire.c:222–232  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

220}
221
222struct simple_htlc *fromwire_simple_htlc(const tal_t *ctx,
223 const u8 **cursor, size_t *max)
224{
225 struct simple_htlc *simple = tal(ctx, struct simple_htlc);
226
227 simple->side = fromwire_side(cursor, max);
228 simple->amount = fromwire_amount_msat(cursor, max);
229 fromwire_sha256(cursor, max, &simple->payment_hash);
230 simple->cltv_expiry = fromwire_u32(cursor, max);
231 return simple;
232}
233
234void fromwire_fulfilled_htlc(const u8 **cursor, size_t *max,
235 struct fulfilled_htlc *fulfilled)

Callers

nothing calls this directly

Calls 4

fromwire_sideFunction · 0.85
fromwire_amount_msatFunction · 0.70
fromwire_sha256Function · 0.50
fromwire_u32Function · 0.50

Tested by

no test coverage detected