Function lnd::exe_path

source ·
pub fn exe_path() -> Result<String>
Expand description

Returns the daemon lnd executable with the following precedence:

  1. If it’s specified in the LND_EXEC or in LND_EXE env var (errors if both env vars are present)
  2. If there is no env var but an auto-download feature such as lnd_0_9_11 is enabled, returns the path of the downloaded executabled
  3. If neither of the precedent are available, the lnd executable is searched in the PATH