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

Function close_command_timeout

lightningd/closing_control.c:124–134  ·  view source on GitHub ↗

Handle timeout. */

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 2

json_notify_fmtFunction · 0.85
channel_fail_permanentFunction · 0.70

Tested by

no test coverage detected