MCPcopy Create free account
hub / github.com/ElementsProject/lightning / new_interactivetx_context

Function new_interactivetx_context

common/interactivetx.c:50–71  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

48}
49
50struct 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
73static bool is_segwit_output(const tal_t *ctx,
74 struct wally_tx_output *output,

Callers 3

splice_accepterFunction · 0.85

Calls 1

create_psbtFunction · 0.85

Tested by

no test coverage detected