| 85 | } |
| 86 | |
| 87 | struct wally_psbt *combine_psbt(const tal_t *ctx, |
| 88 | const struct wally_psbt *psbt0, |
| 89 | const struct wally_psbt *psbt1) |
| 90 | { |
| 91 | struct wally_psbt *combined_psbt; |
| 92 | tal_wally_start(); |
| 93 | if (wally_psbt_clone_alloc(psbt0, 0, &combined_psbt) != WALLY_OK) |
| 94 | abort(); |
| 95 | if (wally_psbt_combine(combined_psbt, psbt1) != WALLY_OK) { |
| 96 | tal_wally_end_onto(ctx, combined_psbt, struct wally_psbt); |
| 97 | return tal_free(combined_psbt); |
| 98 | } |
| 99 | tal_wally_end_onto(ctx, combined_psbt, struct wally_psbt); |
| 100 | return combined_psbt; |
| 101 | } |
| 102 | |
| 103 | static bool parent_or_grandparent(const tal_t *goal, const tal_t *child) |
| 104 | { |
no test coverage detected