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

Function decode

tests/fuzz/fuzz-wire-channel_ready.c:21–29  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

19}
20
21static struct channel_ready *decode(const tal_t *ctx, const void *p)
22{
23 struct channel_ready *s = tal(ctx, struct channel_ready);
24
25 if (fromwire_channel_ready(s, p, &s->channel_id,
26 &s->second_per_commitment_point, &s->tlvs))
27 return s;
28 return tal_free(s);
29}
30
31static bool equal(const struct channel_ready *x, const struct channel_ready *y)
32{

Callers

nothing calls this directly

Calls 1

tal_freeFunction · 0.85

Tested by

no test coverage detected