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

Function cleanup_peer_pending_opens

plugins/funder.c:120–129  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

118}
119
120static void cleanup_peer_pending_opens(struct command *cmd,
121 const struct node_id *id)
122{
123 struct pending_open *i, *next;
124 list_for_each_safe(&pending_opens, i, next, list) {
125 if (node_id_eq(&i->peer_id, id)) {
126 unreserve_psbt(cmd, i);
127 }
128 }
129}
130
131static struct command_result *
132command_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