Use proper electrs binary on RP4 ARM vs ARM64

This commit is contained in:
Taylor Helsper 2021-04-27 23:10:54 -05:00
parent b59c944b97
commit 254d1a1ba2
3 changed files with 11 additions and 2 deletions

View File

@ -9,7 +9,6 @@ After=bitcoin.service
[Service] [Service]
Type=simple Type=simple
KillMode=process KillMode=process
EnvironmentFile=/mnt/hdd/mynode/settings/.btcrpc_environment
ExecStartPre=/usr/bin/is_not_shutting_down.sh ExecStartPre=/usr/bin/is_not_shutting_down.sh
ExecStartPre=/usr/bin/wait_on_bitcoin.sh ExecStartPre=/usr/bin/wait_on_bitcoin.sh
ExecStart=/usr/bin/electrs --conf=/mnt/hdd/mynode/electrs/electrs.toml -vvvv ExecStart=/usr/bin/electrs --conf=/mnt/hdd/mynode/electrs/electrs.toml -vvvv

View File

@ -338,6 +338,15 @@ if [ -f /mnt/hdd/mynode/settings/.testnet_enabled ]; then
else else
sed -i "s/testnet/bitcoin/g" /mnt/hdd/mynode/electrs/electrs.toml || true sed -i "s/testnet/bitcoin/g" /mnt/hdd/mynode/electrs/electrs.toml || true
fi fi
if [ $IS_RASPI4_ARM64 -eq 1 ]; then
if [ -f /usr/bin/electrs ] && [ -f /usr/bin/electrs_arm64 ]; then
MD5_1=$(md5sum /usr/bin/electrs | cut -d' ' -f 1)
MD5_2=$(md5sum /usr/bin/electrs_arm64 | cut -d' ' -f 1)
if [ "${MD5_1}" != "{$MD5_2}" ]; then
cp -f /usr/bin/electrs_arm64 /usr/bin/electrs
fi
fi
fi
# RTL config # RTL config
sudo -u bitcoin mkdir -p /opt/mynode/RTL sudo -u bitcoin mkdir -p /opt/mynode/RTL

View File

@ -272,7 +272,8 @@ def initialize_applications():
short_name="sphinxrelay", short_name="sphinxrelay",
app_tile_button_text="Info", app_tile_button_text="Info",
app_tile_button_href="/sphinxrelay", app_tile_button_href="/sphinxrelay",
app_tile_default_status_text="Chat", app_tile_default_status_text="Sphinx Chat Backend",
app_tile_running_status_text="Running",
requires_lightning=True, requires_lightning=True,
show_on_homepage=True, show_on_homepage=True,
homepage_order=34, homepage_order=34,