From 20c2b7e398b64e6f559fec5e97cb7eb558000705 Mon Sep 17 00:00:00 2001 From: Taylor Helsper Date: Wed, 16 Mar 2022 21:54:55 -0500 Subject: [PATCH] Move BTC LND Tor toggle to use settings_file_exists --- rootfs/standard/var/pynode/device_info.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/rootfs/standard/var/pynode/device_info.py b/rootfs/standard/var/pynode/device_info.py index d4307437..17fe3865 100644 --- a/rootfs/standard/var/pynode/device_info.py +++ b/rootfs/standard/var/pynode/device_info.py @@ -1126,13 +1126,13 @@ def reset_tor(): os.system("rm -rf /mnt/hdd/mynode/lnd/v3_onion_private_key") def is_btc_lnd_tor_enabled(): - return os.path.isfile("/mnt/hdd/mynode/settings/.btc_lnd_tor_enabled") + settings_file_exists("btc_lnd_tor_enabled") def enable_btc_lnd_tor(): - touch("/mnt/hdd/mynode/settings/.btc_lnd_tor_enabled") + create_settings_file("btc_lnd_tor_enabled") def disable_btc_lnd_tor(): - delete_file("/mnt/hdd/mynode/settings/.btc_lnd_tor_enabled") + delete_settings_file("btc_lnd_tor_enabled") def is_aptget_tor_enabled(): return os.path.isfile("/mnt/hdd/mynode/settings/torify_apt_get")