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

Function decode

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

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 1

tal_freeFunction · 0.85

Tested by

no test coverage detected