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

Function has_all_subdaemons

lightningd/lightningd.c:507–520  ·  view source on GitHub ↗

Check if all subdaemons exist in specified directory. */

Source from the content-addressed store, hash-verified

505
506/* Check if all subdaemons exist in specified directory. */
507static bool has_all_subdaemons(const char *daemon_dir)
508{
509 size_t i;
510 bool missing_daemon = false;
511
512 for (i = 0; i < ARRAY_SIZE(subdaemons); ++i) {
513 if (!path_is_file(path_join(tmpctx, daemon_dir, subdaemons[i]))) {
514 missing_daemon = true;
515 break;
516 }
517 }
518
519 return !missing_daemon;
520}
521
522/* Returns the directory this executable is running from */
523static 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