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

Function close_command_timeout

lightningd/closing_control.c:129–139  ·  view source on GitHub ↗

Handle timeout. */

Source from the content-addressed store, hash-verified

127
128/* Handle timeout. */
129static void
130close_command_timeout(struct close_command *cc)
131{
132 /* This will trigger drop_to_chain, which will trigger
133 * resolution of the command and destruction of the
134 * close_command. */
135 json_notify_fmt(cc->cmd, LOG_INFORM,
136 "Timed out, forcing close.");
137 channel_fail_permanent(cc->channel, REASON_USER,
138 "Forcibly closed by `close` command timeout");
139}
140
141/* Construct a close command structure and add to ld. */
142static void

Callers

nothing calls this directly

Calls 2

json_notify_fmtFunction · 0.70
channel_fail_permanentFunction · 0.70

Tested by

no test coverage detected