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

Function resolve_close_command

lightningd/closing_control.c:84–95  ·  view source on GitHub ↗

Resolve a close command for a channel that will be closed soon. */

Source from the content-addressed store, hash-verified

82
83/* Resolve a close command for a channel that will be closed soon. */
84void resolve_close_command(struct lightningd *ld, struct channel *channel,
85 bool cooperative, const struct bitcoin_tx **close_txs)
86{
87 struct close_command *cc;
88 struct close_command *n;
89
90 list_for_each_safe(&ld->close_commands, cc, n, list) {
91 if (cc->channel != channel)
92 continue;
93 resolve_one_close_command(cc, cooperative, close_txs);
94 }
95}
96
97/* Destroy the close command structure in reaction to the
98 * channel being destroyed. */

Callers 1

drop_to_chainFunction · 0.70

Calls 1

Tested by

no test coverage detected