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

Function status_failed

common/status.c:210–224  ·  view source on GitHub ↗

FIXME: rename to status_fatal, s/fail/fatal/ in status_failreason enums */

Source from the content-addressed store, hash-verified

208
209/* FIXME: rename to status_fatal, s/fail/fatal/ in status_failreason enums */
210void status_failed(enum status_failreason reason, const char *fmt, ...)
211{
212 va_list ap;
213 char *str;
214
215 va_start(ap, fmt);
216 str = tal_vfmt(NULL, fmt, ap);
217 va_end(ap);
218
219 /* Give a nice backtrace when this happens! */
220 if (reason == STATUS_FAIL_INTERNAL_ERROR)
221 send_backtrace(str);
222
223 status_send_fatal(take(towire_status_fail(NULL, reason, str)));
224}
225
226void master_badmsg(u32 type_expected, const u8 *msg)
227{

Callers 15

reopen_gossip_storeFunction · 0.70
gossip_store_nextFunction · 0.70
master_badmsgFunction · 0.70
status_backtrace_exitFunction · 0.70
tor_send_cmdFunction · 0.50
tor_response_line_wfailFunction · 0.50
tor_response_lineFunction · 0.50
make_onionFunction · 0.50
make_fixed_onionFunction · 0.50
negotiate_authFunction · 0.50
setup_gossip_storeFunction · 0.50
send_manual_pingFunction · 0.50

Calls 3

status_send_fatalFunction · 0.85
towire_status_failFunction · 0.85
send_backtraceFunction · 0.70

Tested by

no test coverage detected