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

Function decode

tests/fuzz/fuzz-wire-channel_update.c:29–40  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

27}
28
29static struct channel_update *decode(const tal_t *ctx, const void *p)
30{
31 struct channel_update *s = tal(ctx, struct channel_update);
32
33 if (fromwire_channel_update(
34 p, &s->signature, &s->chain_hash, &s->short_channel_id,
35 &s->timestamp, &s->message_flags, &s->channel_flags,
36 &s->cltv_expiry_delta, &s->htlc_minimum_msat, &s->fee_base_msat,
37 &s->fee_proportional_millionths, &s->htlc_maximum_msat))
38 return s;
39 return tal_free(s);
40}
41
42static bool equal(const struct channel_update *x,
43 const struct channel_update *y)

Callers

nothing calls this directly

Calls 1

tal_freeFunction · 0.85

Tested by

no test coverage detected