| 47 | } |
| 48 | |
| 49 | static bool equal(const struct reply_channel_range *x, |
| 50 | const struct reply_channel_range *y) |
| 51 | { |
| 52 | size_t upto_sync_complete = (uintptr_t)&x->sync_complete - (uintptr_t)x; |
| 53 | if (memcmp(x, y, upto_sync_complete) != 0) |
| 54 | return false; |
| 55 | if (x->sync_complete != y->sync_complete) |
| 56 | return false; |
| 57 | |
| 58 | if (!tal_arr_eq(x->encoded_short_ids, y->encoded_short_ids)) |
| 59 | return false; |
| 60 | |
| 61 | assert(x->tlvs && y->tlvs); |
| 62 | |
| 63 | if (!timestamps_tlv_equal(x->tlvs->timestamps_tlv, |
| 64 | y->tlvs->timestamps_tlv)) |
| 65 | return false; |
| 66 | |
| 67 | return tal_arr_eq(x->tlvs->checksums_tlv, y->tlvs->checksums_tlv); |
| 68 | } |
| 69 | |
| 70 | void run(const u8 *data, size_t size) |
| 71 | { |
nothing calls this directly
no test coverage detected