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

Function decode

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

Source from the content-addressed store, hash-verified

20}
21
22static struct tx_add_input *decode(const tal_t *ctx, const void *p)
23{
24 struct tx_add_input *s = tal(ctx, struct tx_add_input);
25 struct tlv_tx_add_input_tlvs *tlvs;
26
27 if (fromwire_tx_add_input(s, p, &s->channel_id, &s->serial_id,
28 &s->prevtx, &s->prevtx_vout, &s->sequence,
29 &tlvs))
30 return s;
31 return tal_free(s);
32}
33
34static bool equal(const struct tx_add_input *x, const struct tx_add_input *y)
35{

Callers

nothing calls this directly

Calls 1

tal_freeFunction · 0.85

Tested by

no test coverage detected