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

Function encode

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

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected