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