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