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