| 38 | } |
| 39 | |
| 40 | static struct accept_channel2 *decode(const tal_t *ctx, const void *p) |
| 41 | { |
| 42 | struct accept_channel2 *s = tal(ctx, struct accept_channel2); |
| 43 | |
| 44 | if (fromwire_accept_channel2( |
| 45 | s, p, &s->temporary_channel_id, &s->funding_satoshis, |
| 46 | &s->dust_limit_satoshis, &s->max_htlc_value_in_flight_msat, |
| 47 | &s->htlc_minimum_msat, &s->minimum_depth, &s->to_self_delay, |
| 48 | &s->max_accepted_htlcs, &s->funding_pubkey, |
| 49 | &s->revocation_basepoint, &s->payment_basepoint, |
| 50 | &s->delayed_payment_basepoint, &s->htlc_basepoint, |
| 51 | &s->first_per_commitment_point, &s->second_per_commitment_point, |
| 52 | &s->tlvs)) |
| 53 | return s; |
| 54 | return tal_free(s); |
| 55 | } |
| 56 | |
| 57 | static bool will_fund_equal(const struct tlv_accept_tlvs_will_fund *x, |
| 58 | const struct tlv_accept_tlvs_will_fund *y) |
nothing calls this directly
no test coverage detected