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

Function decode

tests/fuzz/fuzz-wire-peer_storage.c:16–23  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 1

tal_freeFunction · 0.85

Tested by

no test coverage detected