| 182 | } |
| 183 | |
| 184 | struct wally_psbt_input *psbt_add_input(struct wally_psbt *psbt, |
| 185 | const struct wally_tx_input *input, |
| 186 | size_t insert_at) |
| 187 | { |
| 188 | const u32 flags = WALLY_PSBT_FLAG_NON_FINAL; /* Skip script/witness */ |
| 189 | int wally_err; |
| 190 | |
| 191 | tal_wally_start(); |
| 192 | wally_err = wally_psbt_add_tx_input_at(psbt, insert_at, flags, input); |
| 193 | assert(wally_err == WALLY_OK); |
| 194 | tal_wally_end(psbt); |
| 195 | return &psbt->inputs[insert_at]; |
| 196 | } |
| 197 | |
| 198 | struct wally_psbt_input *psbt_append_input(struct wally_psbt *psbt, |
| 199 | const struct bitcoin_outpoint *outpoint, |
nothing calls this directly
no test coverage detected