Add functions for checking custom lnd/btc configs

This commit is contained in:
Taylor Helsper 2020-07-13 22:10:06 -05:00
parent 28bca4b9c7
commit 969107859b
2 changed files with 6 additions and 0 deletions

View File

@ -173,6 +173,9 @@ def set_bitcoin_custom_config(config):
except: except:
return False return False
def using_bitcoin_custom_config():
return os.path.isfile("/mnt/hdd/mynode/settings/bitcoin_custom.conf")
def delete_bitcoin_custom_config(): def delete_bitcoin_custom_config():
os.system("rm -f /mnt/hdd/mynode/settings/bitcoin_custom.conf") os.system("rm -f /mnt/hdd/mynode/settings/bitcoin_custom.conf")

View File

@ -247,6 +247,9 @@ def set_lnd_custom_config(config):
except: except:
return False return False
def using_lnd_custom_config():
return os.path.isfile("/mnt/hdd/mynode/settings/lnd_custom.conf")
def delete_lnd_custom_config(): def delete_lnd_custom_config():
os.system("rm -f /mnt/hdd/mynode/settings/lnd_custom.conf") os.system("rm -f /mnt/hdd/mynode/settings/lnd_custom.conf")