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

Function hsmd_status_failed

hsmd/hsmd.c:597–611  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

595}
596
597void hsmd_status_failed(enum status_failreason reason, const char *fmt, ...)
598{
599 va_list ap;
600 char *str;
601
602 va_start(ap, fmt);
603 str = tal_vfmt(NULL, fmt, ap);
604 va_end(ap);
605
606 /* Give a nice backtrace when this happens! */
607 if (reason == STATUS_FAIL_INTERNAL_ERROR)
608 send_backtrace(str);
609
610 status_send_fatal(take(towire_status_fail(NULL, reason, str)));
611}
612
613/*~ This is the core of the HSM daemon: handling requests. */
614static struct io_plan *handle_client(struct io_conn *conn, struct client *c)

Callers 7

node_keyFunction · 0.70
node_schnorrkeyFunction · 0.70
bitcoin_keyFunction · 0.70
handle_sign_bolt12Function · 0.70
hsmd_initFunction · 0.70

Calls 3

status_send_fatalFunction · 0.85
towire_status_failFunction · 0.85
send_backtraceFunction · 0.50

Tested by

no test coverage detected