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

Function decode

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

Source from the content-addressed store, hash-verified

19}
20
21static struct fuzzsplice *decode(const tal_t *ctx, const void *p)
22{
23 struct fuzzsplice *s = tal(ctx, struct fuzzsplice);
24
25 if (fromwire_splice(p, &s->channel_id,
26 &s->relative_satoshis, &s->funding_feerate_perkw,
27 &s->locktime, &s->funding_pubkey))
28 return s;
29 return tal_free(s);
30}
31
32static bool equal(const struct fuzzsplice *x, const struct fuzzsplice *y)
33{

Callers

nothing calls this directly

Calls 1

tal_freeFunction · 0.85

Tested by

no test coverage detected