| 30 | } |
| 31 | |
| 32 | static bool equal(struct commitment_signed *x, struct commitment_signed *y) |
| 33 | { |
| 34 | size_t upto_htlc_signature = |
| 35 | (uintptr_t)&x->htlc_signature - (uintptr_t)x; |
| 36 | if (memcmp(x, y, upto_htlc_signature) != 0) |
| 37 | return false; |
| 38 | |
| 39 | if (!tal_arr_eq(x->htlc_signature, y->htlc_signature)) |
| 40 | return false; |
| 41 | |
| 42 | assert(x->tlvs && y->tlvs); |
| 43 | return tal_arr_eq(x->tlvs->splice_info, y->tlvs->splice_info); |
| 44 | } |
| 45 | |
| 46 | void run(const u8 *data, size_t size) |
| 47 | { |
nothing calls this directly
no outgoing calls
no test coverage detected