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

Function cleanup_peer_pending_opens

plugins/funder.c:126–135  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

124}
125
126static void cleanup_peer_pending_opens(struct command *cmd,
127 const struct node_id *id)
128{
129 struct pending_open *i, *next;
130 list_for_each_safe(&pending_opens, i, next, list) {
131 if (node_id_eq(&i->peer_id, id)) {
132 unreserve_psbt(cmd, i);
133 }
134 }
135}
136
137static struct command_result *
138command_hook_cont_psbt(struct command *cmd, struct wally_psbt *psbt)

Callers 1

json_disconnectFunction · 0.85

Calls 2

node_id_eqFunction · 0.85
unreserve_psbtFunction · 0.85

Tested by

no test coverage detected