| 1080 | } |
| 1081 | |
| 1082 | static u32 psbt_input_index(const struct wally_psbt *psbt, size_t index) |
| 1083 | { |
| 1084 | if (psbt->version == WALLY_PSBT_VERSION_0) |
| 1085 | return psbt->tx->inputs[index].index; |
| 1086 | return psbt->inputs[index].index; |
| 1087 | } |
| 1088 | |
| 1089 | static u32 psbt_input_sequence(const struct wally_psbt *psbt, size_t index) |
| 1090 | { |