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

Function decode

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

Source from the content-addressed store, hash-verified

19}
20
21static struct funding_created *decode(const tal_t *ctx, const void *p)
22{
23 struct funding_created *s = tal(ctx, struct funding_created);
24
25 if (fromwire_funding_created(p, &s->temporary_channel_id,
26 &s->funding_txid, &s->funding_output_index,
27 &s->signature))
28 return s;
29 return tal_free(s);
30}
31
32static bool equal(const struct funding_created *x,
33 const struct funding_created *y)

Callers

nothing calls this directly

Calls 1

tal_freeFunction · 0.85

Tested by

no test coverage detected