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

Function status_failed

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

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

Source from the content-addressed store, hash-verified

194
195/* FIXME: rename to status_fatal, s/fail/fatal/ in status_failreason enums */
196void status_failed(enum status_failreason reason, const char *fmt, ...)
197{
198 va_list ap;
199 char *str;
200
201 va_start(ap, fmt);
202 str = tal_vfmt(NULL, fmt, ap);
203 va_end(ap);
204
205 /* Give a nice backtrace when this happens! */
206 if (reason == STATUS_FAIL_INTERNAL_ERROR)
207 send_backtrace(str);
208
209 status_send_fatal(take(towire_status_fail(NULL, reason, str)));
210}
211
212void master_badmsg(u32 type_expected, const u8 *msg)
213{

Callers 15

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
tor_autoserviceFunction · 0.50
tor_fixed_serviceFunction · 0.50
reopen_gossip_storeFunction · 0.50
gossip_store_nextFunction · 0.50

Calls 2

status_send_fatalFunction · 0.85
send_backtraceFunction · 0.70