| 259 | } |
| 260 | |
| 261 | struct wally_psbt_output *psbt_add_output(struct wally_psbt *psbt, |
| 262 | struct wally_tx_output *output, |
| 263 | size_t insert_at) |
| 264 | { |
| 265 | int wally_err; |
| 266 | |
| 267 | tal_wally_start(); |
| 268 | wally_err = wally_psbt_add_tx_output_at(psbt, insert_at, 0, output); |
| 269 | assert(wally_err == WALLY_OK); |
| 270 | tal_wally_end(psbt); |
| 271 | return &psbt->outputs[insert_at]; |
| 272 | } |
| 273 | |
| 274 | struct wally_psbt_output *psbt_append_output(struct wally_psbt *psbt, |
| 275 | const u8 *script, |
no test coverage detected