diff --git a/rootfs/standard/usr/bin/mynode_post_upgrade.sh b/rootfs/standard/usr/bin/mynode_post_upgrade.sh index 9b364c7f..dfb15b24 100755 --- a/rootfs/standard/usr/bin/mynode_post_upgrade.sh +++ b/rootfs/standard/usr/bin/mynode_post_upgrade.sh @@ -198,7 +198,7 @@ fi # Upgrade LND echo "Upgrading LND..." -LND_VERSION="v0.10.3-beta" +LND_VERSION="v0.11.0-beta" LND_ARCH="lnd-linux-armv7" if [ $IS_X86 = 1 ]; then LND_ARCH="lnd-linux-amd64" diff --git a/rootfs/standard/var/www/mynode/lightning_info.py b/rootfs/standard/var/www/mynode/lightning_info.py index 2b3f43bf..66c5e047 100644 --- a/rootfs/standard/var/www/mynode/lightning_info.py +++ b/rootfs/standard/var/www/mynode/lightning_info.py @@ -12,6 +12,7 @@ from device_info import get_journalctl_log lightning_info = None lnd_ready = False lnd_version = None +loopd_version = None lightning_peers = None lightning_channels = None lightning_channel_balance = None @@ -214,6 +215,12 @@ def get_lnd_version(): lnd_version = subprocess.check_output("lnd --version | egrep -o '[0-9]+\\.[0-9]+\\.[0-9]+' | head -n 1", shell=True) return lnd_version +def get_loopd_version(): + global loopd_version + if loopd_version == None: + loopd_version = subprocess.check_output("loopd --version | egrep -o '[0-9]+\\.[0-9]+\\.[0-9]+' | head -n 1", shell=True) + return loopd_version + def get_default_lnd_config(): try: with open("/usr/share/mynode/lnd.conf") as f: diff --git a/rootfs/standard/var/www/mynode/lnd.py b/rootfs/standard/var/www/mynode/lnd.py index 49301029..d189cbe1 100644 --- a/rootfs/standard/var/www/mynode/lnd.py +++ b/rootfs/standard/var/www/mynode/lnd.py @@ -67,6 +67,7 @@ def page_lnd(): "wallet_exists": wallet_exists, "wallet_logged_in": wallet_logged_in, "version": get_lnd_version(), + "loopd_version": get_loopd_version(), "status": status, "ui_settings": read_ui_settings() } @@ -80,6 +81,7 @@ def page_lnd(): "alias": alias, "status": get_lnd_status(), "version": get_lnd_version(), + "loopd_version": get_loopd_version(), "ui_settings": read_ui_settings() } return render_template('lnd.html', **templateData) @@ -159,6 +161,7 @@ def page_lnd(): "wallet_exists": wallet_exists, "wallet_logged_in": wallet_logged_in, "version": get_lnd_version(), + "loopd_version": get_loopd_version(), "channel_backup_exists": channel_backup_exists, "status": status, "height": height, diff --git a/rootfs/standard/var/www/mynode/templates/lnd.html b/rootfs/standard/var/www/mynode/templates/lnd.html index 1c90fef1..044b5953 100644 --- a/rootfs/standard/var/www/mynode/templates/lnd.html +++ b/rootfs/standard/var/www/mynode/templates/lnd.html @@ -130,9 +130,13 @@