| 58 | } |
| 59 | |
| 60 | struct wally_psbt *clone_psbt(const tal_t *ctx, struct wally_psbt *psbt) |
| 61 | { |
| 62 | struct wally_psbt *clone; |
| 63 | tal_wally_start(); |
| 64 | if (wally_psbt_clone_alloc(psbt, 0, &clone) != WALLY_OK) |
| 65 | abort(); |
| 66 | tal_wally_end_onto(ctx, clone, struct wally_psbt); |
| 67 | return clone; |
| 68 | } |
| 69 | |
| 70 | struct wally_psbt *new_psbt(const tal_t *ctx, const struct wally_tx *wtx) |
| 71 | { |
no test coverage detected