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

Function decode

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

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 1

tal_freeFunction · 0.85

Tested by

no test coverage detected