mirror of
https://github.com/mynodebtc/mynode.git
synced 2024-12-23 21:18:07 +00:00
Use proper electrs binary on RP4 ARM vs ARM64
This commit is contained in:
parent
b59c944b97
commit
254d1a1ba2
|
@ -9,7 +9,6 @@ After=bitcoin.service
|
|||
[Service]
|
||||
Type=simple
|
||||
KillMode=process
|
||||
EnvironmentFile=/mnt/hdd/mynode/settings/.btcrpc_environment
|
||||
ExecStartPre=/usr/bin/is_not_shutting_down.sh
|
||||
ExecStartPre=/usr/bin/wait_on_bitcoin.sh
|
||||
ExecStart=/usr/bin/electrs --conf=/mnt/hdd/mynode/electrs/electrs.toml -vvvv
|
||||
|
|
|
@ -338,6 +338,15 @@ if [ -f /mnt/hdd/mynode/settings/.testnet_enabled ]; then
|
|||
else
|
||||
sed -i "s/testnet/bitcoin/g" /mnt/hdd/mynode/electrs/electrs.toml || true
|
||||
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
|
||||
sudo -u bitcoin mkdir -p /opt/mynode/RTL
|
||||
|
|
|
@ -272,7 +272,8 @@ def initialize_applications():
|
|||
short_name="sphinxrelay",
|
||||
app_tile_button_text="Info",
|
||||
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,
|
||||
show_on_homepage=True,
|
||||
homepage_order=34,
|
||||
|
|
Loading…
Reference in New Issue
Block a user