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

Function decode

tests/fuzz/fuzz-wire-shutdown.c:20–27  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

18}
19
20static struct shutdown *decode(const tal_t *ctx, const void *p)
21{
22 struct shutdown *s = tal(ctx, struct shutdown);
23
24 if (fromwire_shutdown(s, p, &s->channel_id, &s->scriptpubkey, &s->tlvs))
25 return s;
26 return tal_free(s);
27}
28
29static bool wrong_funding_equal(const struct tlv_shutdown_tlvs_wrong_funding *x,
30 const struct tlv_shutdown_tlvs_wrong_funding *y)

Callers

nothing calls this directly

Calls 1

tal_freeFunction · 0.85

Tested by

no test coverage detected