| 29 | }; |
| 30 | |
| 31 | static 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 | |
| 44 | static struct open_channel *decode(const tal_t *ctx, const void *p) |
| 45 | { |
nothing calls this directly
no outgoing calls
no test coverage detected