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

Function resolve_close_command

lightningd/closing_control.c:82–93  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

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

Callers 1

drop_to_chainFunction · 0.70

Calls 1

Tested by

no test coverage detected