Try changing up the serial ids */
| 113 | |
| 114 | /* Try changing up the serial ids */ |
| 115 | static void change_serials(void) |
| 116 | { |
| 117 | struct wally_psbt *psbt; |
| 118 | |
| 119 | psbt = create_psbt(tmpctx, 1, 1, 0); |
| 120 | add_in_out_with_serial(psbt, 10, 1); |
| 121 | |
| 122 | psbt_output_set_serial_id(psbt, &psbt->outputs[0], 2); |
| 123 | assert(psbt_find_serial_output(psbt, 2) == 0); |
| 124 | assert(psbt_find_serial_output(psbt, 10) == -1); |
| 125 | |
| 126 | psbt_input_set_serial_id(psbt, &psbt->inputs[0], 4); |
| 127 | assert(psbt_find_serial_input(psbt, 4) == 0); |
| 128 | assert(psbt_find_serial_input(psbt, 10) == -1); |
| 129 | |
| 130 | } |
| 131 | |
| 132 | static void check_psbt_comparison(void) |
| 133 | { |
no test coverage detected