| 35 | } |
| 36 | |
| 37 | struct wally_psbt *clone_psbt(const tal_t *ctx, const struct wally_psbt *psbt) |
| 38 | { |
| 39 | struct wally_psbt *clone; |
| 40 | tal_wally_start(); |
| 41 | if (wally_psbt_clone_alloc(psbt, 0, &clone) != WALLY_OK) |
| 42 | abort(); |
| 43 | tal_wally_end_onto(ctx, clone, struct wally_psbt); |
| 44 | return clone; |
| 45 | } |
| 46 | |
| 47 | struct wally_psbt *new_psbt(const tal_t *ctx, const struct wally_tx *wtx) |
| 48 | { |
no test coverage detected