| 1144 | } |
| 1145 | |
| 1146 | static const u8 *psbt_output_script(const struct wally_psbt *psbt, size_t index) |
| 1147 | { |
| 1148 | if (psbt->version == WALLY_PSBT_VERSION_0) |
| 1149 | return psbt->tx->outputs[index].script; |
| 1150 | return psbt->outputs[index].script; |
| 1151 | } |
| 1152 | |
| 1153 | /* We consider two PSBTs *equivalent* if they have the same inputs and outputs */ |
| 1154 | static bool psbt_equivalent(const struct wally_psbt *a, |