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

Function has_all_subdaemons

lightningd/lightningd.c:510–523  ·  view source on GitHub ↗

Check if all subdaemons exist in specified directory. */

Source from the content-addressed store, hash-verified

508
509/* Check if all subdaemons exist in specified directory. */
510static bool has_all_subdaemons(const char *daemon_dir)
511{
512 size_t i;
513 bool missing_daemon = false;
514
515 for (i = 0; i < ARRAY_SIZE(subdaemons); ++i) {
516 if (!path_is_file(path_join(tmpctx, daemon_dir, subdaemons[i]))) {
517 missing_daemon = true;
518 break;
519 }
520 }
521
522 return !missing_daemon;
523}
524
525/* Returns the directory this executable is running from */
526static const char *find_my_directory(const tal_t *ctx, const char *argv0)

Callers 1

Calls 2

path_is_fileFunction · 0.85
path_joinFunction · 0.85

Tested by

no test coverage detected