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

Function decode

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

Source from the content-addressed store, hash-verified

20}
21
22static struct query_channel_range *decode(const tal_t *ctx, const void *p)
23{
24 struct query_channel_range *s = tal(ctx, struct query_channel_range);
25
26 if (fromwire_query_channel_range(s, p, &s->chain_hash,
27 &s->first_blocknum,
28 &s->number_of_blocks, &s->tlvs))
29 return s;
30 return tal_free(s);
31}
32
33static bool equal(const struct query_channel_range *x,
34 const struct query_channel_range *y)

Callers

nothing calls this directly

Calls 1

tal_freeFunction · 0.85

Tested by

no test coverage detected