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

Function new_channel_open

plugins/funder.c:53–74  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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

Callers 1

psbt_fundedFunction · 0.85

Calls 1

Tested by

no test coverage detected