Improve LN wallet delete to reset pool,loop,lit as well

This commit is contained in:
Taylor Helsper 2023-01-23 18:14:50 -06:00
parent 7eafde8532
commit 23ecb567cf
5 changed files with 14 additions and 3 deletions

View File

@ -8,8 +8,10 @@ After=bitcoin.service lnd.service
[Service]
ExecStartPre=/usr/bin/is_not_shutting_down.sh
ExecStartPre=/usr/bin/service_scripts/pre_lit.sh
ExecStartPre=/usr/bin/wait_on_bitcoin.sh
ExecStartPre=/usr/bin/wait_on_lnd.sh
ExecStartPre=+/usr/bin/mynode_gen_lit_config.sh
ExecStart=/usr/local/bin/litd --lit-dir=/mnt/hdd/mynode/lit
User=bitcoin

View File

@ -9,7 +9,8 @@ After=lnd.service
[Service]
ExecStartPre=/usr/bin/is_not_shutting_down.sh
ExecStartPre=/usr/bin/wait_on_lnd.sh
EnvironmentFile=/mnt/hdd/mynode/loop/env
ExecStartPre=+/usr/bin/mynode_gen_loop_config.sh
EnvironmentFile=-/mnt/hdd/mynode/loop/env
ExecStart=/usr/local/bin/loopd --network=${NETWORK} --loopdir=/mnt/hdd/mynode/loop --lnd.macaroonpath=${LND_ADMIN_MACAROON_PATH}
User=bitcoin

View File

@ -9,7 +9,8 @@ After=lnd.service
[Service]
ExecStartPre=/usr/bin/is_not_shutting_down.sh
ExecStartPre=/usr/bin/wait_on_lnd.sh
EnvironmentFile=/mnt/hdd/mynode/pool/env
ExecStartPre=+/usr/bin/mynode_gen_pool_config.sh
EnvironmentFile=-/mnt/hdd/mynode/pool/env
ExecStart=/usr/local/bin/poold --network=${NETWORK} --basedir=/mnt/hdd/mynode/pool
User=bitcoin

View File

@ -0,0 +1,4 @@
#!/bin/bash
exit 0

View File

@ -891,7 +891,7 @@ def recheck_premium_plus_token():
os.system("systemctl restart premium_plus_connect")
def get_premium_plus_setting_names():
return ["sync_status","sync_bitcoin_and_lightning","backup_scb","watchtower"]
return ["sync_status","sync_bitcoin_and_lightning","backup_scb","watchtower", "proxy"]
def get_premium_plus_settings():
names = get_premium_plus_setting_names()
settings = {}
@ -1079,6 +1079,9 @@ def reset_blockchain():
#==================================
def delete_lnd_data():
os.system("rm -rf "+LND_DATA_FOLDER)
os.system("rm -rf /mnt/hdd/mynode/pool/*")
os.system("rm -rf /mnt/hdd/mynode/loop/*")
os.system("rm -rf /mnt/hdd/mynode/lit/*")
os.system("rm -rf /tmp/lnd_deposit_address")
os.system("rm -rf /home/bitcoin/.lnd-admin/credentials.json")
os.system("rm -rf /mnt/hdd/mynode/settings/.lndpw")