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

Function is_lightningd

hsmd/hsmd.c:95–98  ·  view source on GitHub ↗

This is used for various assertions and error cases. */

Source from the content-addressed store, hash-verified

93
94/* This is used for various assertions and error cases. */
95static bool is_lightningd(const struct client *client)
96{
97 return client == dbid_zero_clients[0];
98}
99
100/* Pre-declare this, due to mutual recursion */
101static struct io_plan *handle_client(struct io_conn *conn, struct client *c);

Callers 6

bad_req_fmtFunction · 0.85
init_hsmFunction · 0.85
send_pending_client_fdFunction · 0.85
pass_client_hsmfdFunction · 0.85
handle_clientFunction · 0.85
mainFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected