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

Function close_command_timeout

lightningd/closing_control.c:127–137  ·  view source on GitHub ↗

Handle timeout. */

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 2

json_notify_fmtFunction · 0.70
channel_fail_permanentFunction · 0.70

Tested by

no test coverage detected