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

Function encode

tests/fuzz/fuzz-wire-open_channel.c:31–42  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

29};
30
31static void *encode(const tal_t *ctx, const struct open_channel *s)
32{
33 return towire_open_channel(
34 ctx, &s->chain_hash, &s->temporary_channel_id, s->funding_satoshis,
35 s->push_msat, s->dust_limit_satoshis,
36 s->max_htlc_value_in_flight_msat, s->channel_reserve_satoshis,
37 s->htlc_minimum_msat, s->feerate_per_kw, s->to_self_delay,
38 s->max_accepted_htlcs, &s->funding_pubkey, &s->revocation_basepoint,
39 &s->payment_basepoint, &s->delayed_payment_basepoint,
40 &s->htlc_basepoint, &s->first_per_commitment_point,
41 s->channel_flags, s->tlvs);
42}
43
44static struct open_channel *decode(const tal_t *ctx, const void *p)
45{

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected