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

Function cleanup_peer_pending_opens

plugins/funder.c:115–123  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

113}
114
115static void cleanup_peer_pending_opens(const struct node_id *id)
116{
117 struct pending_open *i, *next;
118 list_for_each_safe(&pending_opens, i, next, list) {
119 if (node_id_eq(&i->peer_id, id)) {
120 unreserve_psbt(i);
121 }
122 }
123}
124
125static struct command_result *
126command_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