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

Function decode

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

Source from the content-addressed store, hash-verified

19}
20
21static struct tx_add_output *decode(const tal_t *ctx, const void *p)
22{
23 struct tx_add_output *s = tal(ctx, struct tx_add_output);
24
25 if (fromwire_tx_add_output(s, p, &s->channel_id, &s->serial_id,
26 &s->sats, &s->script))
27 return s;
28 return tal_free(s);
29}
30
31static bool equal(const struct tx_add_output *x, const struct tx_add_output *y)
32{

Callers

nothing calls this directly

Calls 1

tal_freeFunction · 0.85

Tested by

no test coverage detected