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

Function decode

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

Source from the content-addressed store, hash-verified

24}
25
26static struct update_add_htlc *decode(const tal_t *ctx, const void *p)
27{
28 struct update_add_htlc *s = tal(ctx, struct update_add_htlc);
29
30 if (fromwire_update_add_htlc(
31 s, p, &s->channel_id, &s->id, &s->amount_msat, &s->payment_hash,
32 &s->expiry, s->onion_routing_packet, &s->tlvs))
33 return s;
34 return tal_free(s);
35}
36
37static bool equal(const struct update_add_htlc *x,
38 const struct update_add_htlc *y)

Callers

nothing calls this directly

Calls 1

tal_freeFunction · 0.85

Tested by

no test coverage detected