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

Function decode

tests/fuzz/fuzz-wire-error.c:18–25  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

16}
17
18static struct error *decode(const tal_t *ctx, const void *p)
19{
20 struct error *s = tal(ctx, struct error);
21
22 if (fromwire_error(s, p, &s->channel_id, &s->data))
23 return s;
24 return tal_free(s);
25}
26
27static bool equal(const struct error *x, const struct error *y)
28{

Callers

nothing calls this directly

Calls 1

tal_freeFunction · 0.85

Tested by

no test coverage detected