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

Function encode

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

Source from the content-addressed store, hash-verified

26};
27
28static void *encode(const tal_t *ctx, const struct accept_channel2 *s)
29{
30 return towire_accept_channel2(
31 ctx, &s->temporary_channel_id, s->funding_satoshis,
32 s->dust_limit_satoshis, s->max_htlc_value_in_flight_msat,
33 s->htlc_minimum_msat, s->minimum_depth, s->to_self_delay,
34 s->max_accepted_htlcs, &s->funding_pubkey, &s->revocation_basepoint,
35 &s->payment_basepoint, &s->delayed_payment_basepoint,
36 &s->htlc_basepoint, &s->first_per_commitment_point,
37 &s->second_per_commitment_point, s->tlvs);
38}
39
40static struct accept_channel2 *decode(const tal_t *ctx, const void *p)
41{

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected