| 1116 | } |
| 1117 | |
| 1118 | static u32 psbt_input_index(const struct wally_psbt *psbt, size_t index) |
| 1119 | { |
| 1120 | if (psbt->version == WALLY_PSBT_VERSION_0) |
| 1121 | return psbt->tx->inputs[index].index; |
| 1122 | return psbt->inputs[index].index; |
| 1123 | } |
| 1124 | |
| 1125 | static u32 psbt_input_sequence(const struct wally_psbt *psbt, size_t index) |
| 1126 | { |