Improve LND logging

This commit is contained in:
Taylor Helsper 2019-07-03 16:24:01 -05:00
parent 9246f9722d
commit 7f65bc6858
2 changed files with 6 additions and 3 deletions

View File

@ -2,7 +2,6 @@
# /home/bitcoin/.lnd/lnd.conf
[Application Options]
debuglevel=info
maxpendingchannels=5
alias=myNode [LND]
color=#68F442
@ -16,8 +15,8 @@ restlisten=0.0.0.0:10080
tlsextraip=0.0.0.0
#debuglevel=info
debuglevel=debug
debuglevel=info
#debuglevel=debug
[Tor]
tor.active=true

View File

@ -64,6 +64,8 @@ def gen_new_wallet_seed():
return seed
def restart_lnd_actual():
global lnd_ready
lnd_ready = False
os.system("systemctl restart lnd")
os.system("systemctl restart lnd_unlock")
@ -129,6 +131,8 @@ def get_lnd_status():
height = m.group(1)
percent = 100.0 * (float(height) / bitcoin_block_height)
return "Syncing... {:.2f}%".format(percent)
elif "Waiting for chain backend to finish sync" in line:
return "Syncing..."
elif "Started rescan from block" in line:
return "Scanning..."
return "Waiting..."