mirror of
https://github.com/mynodebtc/mynode.git
synced 2024-12-26 06:28:07 +00:00
Add functions for checking custom lnd/btc configs
This commit is contained in:
parent
28bca4b9c7
commit
969107859b
|
@ -173,6 +173,9 @@ def set_bitcoin_custom_config(config):
|
|||
except:
|
||||
return False
|
||||
|
||||
def using_bitcoin_custom_config():
|
||||
return os.path.isfile("/mnt/hdd/mynode/settings/bitcoin_custom.conf")
|
||||
|
||||
def delete_bitcoin_custom_config():
|
||||
os.system("rm -f /mnt/hdd/mynode/settings/bitcoin_custom.conf")
|
||||
|
||||
|
|
|
@ -247,6 +247,9 @@ def set_lnd_custom_config(config):
|
|||
except:
|
||||
return False
|
||||
|
||||
def using_lnd_custom_config():
|
||||
return os.path.isfile("/mnt/hdd/mynode/settings/lnd_custom.conf")
|
||||
|
||||
def delete_lnd_custom_config():
|
||||
os.system("rm -f /mnt/hdd/mynode/settings/lnd_custom.conf")
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user