| 48 | } |
| 49 | |
| 50 | struct interactivetx_context *new_interactivetx_context(const tal_t *ctx, |
| 51 | enum tx_role our_role, |
| 52 | struct per_peer_state *pps, |
| 53 | struct channel_id channel_id) |
| 54 | { |
| 55 | struct interactivetx_context *ictx = tal(ctx, struct interactivetx_context); |
| 56 | |
| 57 | ictx->our_role = our_role; |
| 58 | ictx->pps = pps; |
| 59 | ictx->channel_id = channel_id; |
| 60 | ictx->shared_outpoint = NULL; |
| 61 | ictx->funding_tx = NULL; |
| 62 | ictx->tx_add_input_count = 0; |
| 63 | ictx->tx_add_output_count = 0; |
| 64 | ictx->next_update_fn = default_next_update; |
| 65 | ictx->current_psbt = create_psbt(ictx, 0, 0, 0); |
| 66 | ictx->desired_psbt = NULL; |
| 67 | ictx->pause_when_complete = false; |
| 68 | ictx->change_set = NULL; |
| 69 | |
| 70 | return ictx; |
| 71 | } |
| 72 | |
| 73 | static bool is_segwit_output(const tal_t *ctx, |
| 74 | struct wally_tx_output *output, |
no test coverage detected