From 1a3424b15946409c5d3e08558a9bcd0f96c8bd1b Mon Sep 17 00:00:00 2001 From: Taylor Helsper Date: Wed, 30 Jun 2021 23:05:41 -0500 Subject: [PATCH] Improve LND status for more 'no wallet' cases --- rootfs/standard/var/www/mynode/lightning_info.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/rootfs/standard/var/www/mynode/lightning_info.py b/rootfs/standard/var/www/mynode/lightning_info.py index 9eaf6189..442d6edc 100644 --- a/rootfs/standard/var/www/mynode/lightning_info.py +++ b/rootfs/standard/var/www/mynode/lightning_info.py @@ -487,6 +487,10 @@ def get_lnd_status(): elif "wallet unlock password file was specified but wallet does not exist" in line: return "Config Error" + # Check if no wallet file (log may have been rotated out, so can't get more accurate message) + if not lnd_wallet_exists(): + return "Please create wallet..." + return "Waiting..." except: return "Status Error"