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

Function channel_disconnect

lightningd/dual_open_control.c:43–56  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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

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