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

Function encode

tests/fuzz/fuzz-wire-update_add_htlc.c:19–24  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

17};
18
19static void *encode(const tal_t *ctx, const struct update_add_htlc *s)
20{
21 return towire_update_add_htlc(
22 ctx, &s->channel_id, s->id, s->amount_msat, &s->payment_hash,
23 s->expiry, s->onion_routing_packet, s->tlvs);
24}
25
26static struct update_add_htlc *decode(const tal_t *ctx, const void *p)
27{

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected