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

Function decode

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

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 1

tal_freeFunction · 0.85

Tested by

no test coverage detected