mirror of
https://github.com/mynodebtc/mynode.git
synced 2024-12-27 06:54:00 +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:
|
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")
|
||||||
|
|
||||||
|
|
|
@ -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")
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user