| 52 | } |
| 53 | |
| 54 | static bool equal(const struct accept_channel *x, |
| 55 | const struct accept_channel *y) |
| 56 | { |
| 57 | size_t upto_tlvs = (uintptr_t)&x->tlvs - (uintptr_t)x; |
| 58 | if (memcmp(x, y, upto_tlvs) != 0) |
| 59 | return false; |
| 60 | |
| 61 | assert(x->tlvs && y->tlvs); |
| 62 | |
| 63 | if (!tal_arr_eq(x->tlvs->upfront_shutdown_script, |
| 64 | y->tlvs->upfront_shutdown_script)) |
| 65 | return false; |
| 66 | |
| 67 | return tal_arr_eq(x->tlvs->channel_type, y->tlvs->channel_type); |
| 68 | } |
| 69 | |
| 70 | void run(const u8 *data, size_t size) |
| 71 | { |
nothing calls this directly
no outgoing calls
no test coverage detected