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

Function new_channel_open

plugins/funder.c:52–73  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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

Callers 1

psbt_fundedFunction · 0.85

Calls 1

Tested by

no test coverage detected