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

Function destroy_close_command

lightningd/closing_control.c:113–126  ·  view source on GitHub ↗

Destroy the close command structure. */

Source from the content-addressed store, hash-verified

111
112/* Destroy the close command structure. */
113static void
114destroy_close_command(struct close_command *cc)
115{
116 list_del(&cc->list);
117 /* If destroy_close_command_on_channel_destroy was
118 * triggered beforehand, it will have cleared
119 * the channel field, preventing us from removing it
120 * from an already-destroyed channel. */
121 if (!cc->channel)
122 return;
123 tal_del_destructor2(cc->channel,
124 &destroy_close_command_on_channel_destroy,
125 cc);
126}
127
128/* Handle timeout. */
129static void

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected