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

Function channel_disconnect

lightningd/dual_open_control.c:42–55  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

40};
41
42static void channel_disconnect(struct channel *channel,
43 enum log_level level,
44 bool reconnect,
45 const char *desc)
46{
47 log_(channel->log, level, NULL, false, "%s", desc);
48 channel_cleanup_commands(channel, desc);
49
50 channel_fail_transient(channel, true, "%s: %s",
51 channel->owner ?
52 channel->owner->name :
53 "dualopend-dead",
54 desc);
55}
56
57void channel_unsaved_close_conn(struct channel *channel, const char *why)
58{

Callers 2

channel_err_brokenFunction · 0.85

Calls 3

log_Function · 0.70
channel_cleanup_commandsFunction · 0.70
channel_fail_transientFunction · 0.70

Tested by

no test coverage detected