| 112 | } |
| 113 | |
| 114 | struct wally_psbt_input *psbt_add_input(struct wally_psbt *psbt, |
| 115 | struct wally_tx_input *input, |
| 116 | size_t insert_at) |
| 117 | { |
| 118 | const u32 flags = WALLY_PSBT_FLAG_NON_FINAL; /* Skip script/witness */ |
| 119 | int wally_err; |
| 120 | |
| 121 | tal_wally_start(); |
| 122 | wally_err = wally_psbt_add_input_at(psbt, insert_at, flags, input); |
| 123 | assert(wally_err == WALLY_OK); |
| 124 | tal_wally_end(psbt); |
| 125 | return &psbt->inputs[insert_at]; |
| 126 | } |
| 127 | |
| 128 | struct wally_psbt_input *psbt_append_input(struct wally_psbt *psbt, |
| 129 | const struct bitcoin_outpoint *outpoint, |
no test coverage detected