| 130 | } |
| 131 | |
| 132 | static bool input_identical(const struct wally_psbt *a, |
| 133 | size_t a_index, |
| 134 | const struct wally_psbt *b, |
| 135 | size_t b_index) |
| 136 | { |
| 137 | const u8 *a_in = linearize_input(tmpctx, |
| 138 | &a->inputs[a_index], |
| 139 | &a->tx->inputs[a_index]); |
| 140 | const u8 *b_in = linearize_input(tmpctx, |
| 141 | &b->inputs[b_index], |
| 142 | &b->tx->inputs[b_index]); |
| 143 | |
| 144 | return memeq(a_in, tal_bytelen(a_in), |
| 145 | b_in, tal_bytelen(b_in)); |
| 146 | } |
| 147 | |
| 148 | static bool output_identical(const struct wally_psbt *a, |
| 149 | size_t a_index, |
no test coverage detected