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

Function decode

tests/fuzz/fuzz-wire-onion_message.c:17–24  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

15}
16
17static struct onion_message *decode(const tal_t *ctx, const void *p)
18{
19 struct onion_message *s = tal(ctx, struct onion_message);
20
21 if (fromwire_onion_message(s, p, &s->path_key, &s->onionmsg))
22 return s;
23 return tal_free(s);
24}
25
26static bool equal(const struct onion_message *x, const struct onion_message *y)
27{

Callers

nothing calls this directly

Calls 1

tal_freeFunction · 0.85

Tested by

no test coverage detected