Function electrsd::exe_path

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

Returns the daemon electrs executable with the following precedence:

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