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

Function channel_err_broken

lightningd/dual_open_control.c:90–105  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

88}
89
90static void channel_err_broken(struct channel *channel,
91 const char *fmt, ...)
92{
93 va_list ap;
94 const char *errmsg;
95
96 va_start(ap, fmt);
97 errmsg = tal_vfmt(tmpctx, fmt, ap);
98 va_end(ap);
99
100 if (channel_unsaved(channel)) {
101 log_broken(channel->log, "%s", errmsg);
102 channel_unsaved_close_conn(channel, errmsg);
103 } else
104 channel_disconnect(channel, LOG_BROKEN, false, errmsg);
105}
106
107void json_add_unsaved_channel(struct json_stream *response,
108 const struct channel *channel)

Callers 2

handle_psbt_changedFunction · 0.85
handle_commit_receivedFunction · 0.85

Calls 3

channel_unsavedFunction · 0.85
channel_disconnectFunction · 0.85

Tested by

no test coverage detected