mirror of
https://github.com/mynodebtc/mynode.git
synced 2024-11-13 17:09:15 +00:00
Upgrade LND to v0.11.0
This commit is contained in:
parent
d6e7bae0ca
commit
1f04e7d85d
|
@ -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"
|
||||
|
|
|
@ -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:
|
||||
|
|
|
@ -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,
|
||||
|
|
|
@ -130,9 +130,13 @@
|
|||
<div class="info_tile_contents">{{num_peers}}</div>
|
||||
</div>
|
||||
<div class="info_tile">
|
||||
<div class="info_tile_header">Version</div>
|
||||
<div class="info_tile_header">LND Version</div>
|
||||
<div class="info_tile_contents">{{version}}</div>
|
||||
</div>
|
||||
<div class="info_tile">
|
||||
<div class="info_tile_header">Loop Version</div>
|
||||
<div class="info_tile_contents">{{loopd_version}}</div>
|
||||
</div>
|
||||
</div>
|
||||
{% endif %}
|
||||
|
||||
|
|
|
@ -289,7 +289,7 @@ fi
|
|||
cd ~
|
||||
|
||||
# Install Lightning
|
||||
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"
|
||||
|
|
Loading…
Reference in New Issue
Block a user