| 146 | } |
| 147 | |
| 148 | static bool output_identical(const struct wally_psbt *a, |
| 149 | size_t a_index, |
| 150 | const struct wally_psbt *b, |
| 151 | size_t b_index) |
| 152 | { |
| 153 | const u8 *a_out = linearize_output(tmpctx, |
| 154 | &a->outputs[a_index], |
| 155 | &a->tx->outputs[a_index]); |
| 156 | const u8 *b_out = linearize_output(tmpctx, |
| 157 | &b->outputs[b_index], |
| 158 | &b->tx->outputs[b_index]); |
| 159 | return memeq(a_out, tal_bytelen(a_out), |
| 160 | b_out, tal_bytelen(b_out)); |
| 161 | } |
| 162 | |
| 163 | static void sort_inputs(struct wally_psbt *psbt) |
| 164 | { |
no test coverage detected