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

Function decode

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

Source from the content-addressed store, hash-verified

19}
20
21static struct update_fail_malformed_htlc *decode(const tal_t *ctx,
22 const void *p)
23{
24 struct update_fail_malformed_htlc *s =
25 tal(ctx, struct update_fail_malformed_htlc);
26
27 if (fromwire_update_fail_malformed_htlc(p, &s->channel_id, &s->id,
28 &s->sha256_of_onion,
29 &s->failure_code))
30 return s;
31 return tal_free(s);
32}
33
34static bool equal(const struct update_fail_malformed_htlc *x,
35 const struct update_fail_malformed_htlc *y)

Callers

nothing calls this directly

Calls 1

tal_freeFunction · 0.85

Tested by

no test coverage detected