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

Function new_channel_open

plugins/funder.c:58–79  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

56}
57
58static struct pending_open *
59new_channel_open(const tal_t *ctx,
60 struct plugin *p,
61 const struct node_id id,
62 const struct channel_id cid,
63 const struct wally_psbt *psbt STEALS)
64{
65 struct pending_open *open;
66
67 /* Make sure we haven't gotten this yet */
68 assert(!find_channel_pending_open(&cid));
69
70 open = tal(ctx, struct pending_open);
71 open->p = p;
72 open->peer_id = id;
73 open->channel_id = cid;
74 open->psbt = tal_steal(open, psbt);
75
76 list_add_tail(&pending_opens, &open->list);
77
78 return open;
79}
80
81static struct command_result *
82unreserve_done(struct command *aux_cmd,

Callers 1

psbt_fundedFunction · 0.85

Calls 1

Tested by

no test coverage detected