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

Function encode

tests/fuzz/fuzz-wire-open_channel2.c:32–44  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

30};
31
32static void *encode(const tal_t *ctx, const struct open_channel2 *s)
33{
34 return towire_open_channel2(
35 ctx, &s->chain_hash, &s->temporary_channel_id,
36 s->funding_feerate_perkw, s->commitment_feerate_perkw,
37 s->funding_satoshis, s->dust_limit_satoshis,
38 s->max_htlc_value_in_flight_msat, s->htlc_minimum_msat,
39 s->to_self_delay, s->max_accepted_htlcs, s->locktime,
40 &s->funding_pubkey, &s->revocation_basepoint, &s->payment_basepoint,
41 &s->delayed_payment_basepoint, &s->htlc_basepoint,
42 &s->first_per_commitment_point, &s->second_per_commitment_point,
43 s->channel_flags, s->tlvs);
44}
45
46static struct open_channel2 *decode(const tal_t *ctx, const void *p)
47{

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected