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

Function decode

tests/fuzz/fuzz-wire-accept_channel.c:38–52  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

36}
37
38static struct accept_channel *decode(const tal_t *ctx, const void *p)
39{
40 struct accept_channel *s = tal(ctx, struct accept_channel);
41
42 if (fromwire_accept_channel(
43 s, p, &s->temporary_channel_id, &s->dust_limit_satoshis,
44 &s->max_htlc_value_in_flight_msat, &s->channel_reserve_satoshis,
45 &s->htlc_minimum_msat, &s->minimum_depth, &s->to_self_delay,
46 &s->max_accepted_htlcs, &s->funding_pubkey,
47 &s->revocation_basepoint, &s->payment_basepoint,
48 &s->delayed_payment_basepoint, &s->htlc_basepoint,
49 &s->first_per_commitment_point, &s->tlvs))
50 return s;
51 return tal_free(s);
52}
53
54static bool equal(const struct accept_channel *x,
55 const struct accept_channel *y)

Callers

nothing calls this directly

Calls 1

tal_freeFunction · 0.85

Tested by

no test coverage detected