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

Function towire_simple_htlc

common/htlc_wire.c:117–123  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

115}
116
117void towire_simple_htlc(u8 **pptr, const struct simple_htlc *simple)
118{
119 towire_side(pptr, simple->side);
120 towire_amount_msat(pptr, simple->amount);
121 towire_sha256(pptr, &simple->payment_hash);
122 towire_u32(pptr, simple->cltv_expiry);
123}
124
125void towire_fulfilled_htlc(u8 **pptr, const struct fulfilled_htlc *fulfilled)
126{

Callers

nothing calls this directly

Calls 4

towire_sideFunction · 0.85
towire_amount_msatFunction · 0.70
towire_sha256Function · 0.50
towire_u32Function · 0.50

Tested by

no test coverage detected