Yuck. */
| 1109 | |
| 1110 | /* Yuck. */ |
| 1111 | static const u8 *psbt_input_txid(const struct wally_psbt *psbt, size_t index) |
| 1112 | { |
| 1113 | if (psbt->version == WALLY_PSBT_VERSION_0) |
| 1114 | return psbt->tx->inputs[index].txhash; |
| 1115 | return psbt->inputs[index].txhash; |
| 1116 | } |
| 1117 | |
| 1118 | static u32 psbt_input_index(const struct wally_psbt *psbt, size_t index) |
| 1119 | { |