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

Function decode

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

Source from the content-addressed store, hash-verified

38}
39
40static struct accept_channel2 *decode(const tal_t *ctx, const void *p)
41{
42 struct accept_channel2 *s = tal(ctx, struct accept_channel2);
43
44 if (fromwire_accept_channel2(
45 s, p, &s->temporary_channel_id, &s->funding_satoshis,
46 &s->dust_limit_satoshis, &s->max_htlc_value_in_flight_msat,
47 &s->htlc_minimum_msat, &s->minimum_depth, &s->to_self_delay,
48 &s->max_accepted_htlcs, &s->funding_pubkey,
49 &s->revocation_basepoint, &s->payment_basepoint,
50 &s->delayed_payment_basepoint, &s->htlc_basepoint,
51 &s->first_per_commitment_point, &s->second_per_commitment_point,
52 &s->tlvs))
53 return s;
54 return tal_free(s);
55}
56
57static bool will_fund_equal(const struct tlv_accept_tlvs_will_fund *x,
58 const struct tlv_accept_tlvs_will_fund *y)

Callers

nothing calls this directly

Calls 1

tal_freeFunction · 0.85

Tested by

no test coverage detected