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

Function decode

tests/fuzz/fuzz-wire-node_announcement.c:27–36  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

25}
26
27static struct node_announcement *decode(const tal_t *ctx, const void *p)
28{
29 struct node_announcement *s = tal(ctx, struct node_announcement);
30
31 if (fromwire_node_announcement(s, p, &s->signature, &s->features,
32 &s->timestamp, &s->node_id, s->rgb_color,
33 s->alias, &s->addresses, &s->tlvs))
34 return s;
35 return tal_free(s);
36}
37
38static bool lease_rates_equal(const struct lease_rates *x,
39 const struct lease_rates *y)

Callers

nothing calls this directly

Calls 1

tal_freeFunction · 0.85

Tested by

no test coverage detected