| 189 | } |
| 190 | |
| 191 | struct wally_psbt_output *psbt_add_output(struct wally_psbt *psbt, |
| 192 | struct wally_tx_output *output, |
| 193 | size_t insert_at) |
| 194 | { |
| 195 | int wally_err; |
| 196 | |
| 197 | tal_wally_start(); |
| 198 | wally_err = wally_psbt_add_output_at(psbt, insert_at, 0, output); |
| 199 | assert(wally_err == WALLY_OK); |
| 200 | tal_wally_end(psbt); |
| 201 | return &psbt->outputs[insert_at]; |
| 202 | } |
| 203 | |
| 204 | struct wally_psbt_output *psbt_append_output(struct wally_psbt *psbt, |
| 205 | const u8 *script, |
no test coverage detected