Yuck. */
| 1073 | |
| 1074 | /* Yuck. */ |
| 1075 | static const u8 *psbt_input_txid(const struct wally_psbt *psbt, size_t index) |
| 1076 | { |
| 1077 | if (psbt->version == WALLY_PSBT_VERSION_0) |
| 1078 | return psbt->tx->inputs[index].txhash; |
| 1079 | return psbt->inputs[index].txhash; |
| 1080 | } |
| 1081 | |
| 1082 | static u32 psbt_input_index(const struct wally_psbt *psbt, size_t index) |
| 1083 | { |