mirror of
https://github.com/raspiblitz/raspiblitz.git
synced 2025-03-17 21:31:45 +01:00
electrs update to v0.10.6, fix update check (#4790)
* electrs update to v0.10.6, fix update check * remove the deprecated timestamp entry on install and update * verify tag on install as well as on update
This commit is contained in:
parent
2aa338da77
commit
bdc56d3328
@ -21,6 +21,7 @@ SHA-256-Checksum: 540d9d049900f6a15d3fc325dec48de31d884a5d98eba170fad268cfd0f08f
|
||||
- Update: RTL v0.15.2 [details](https://github.com/Ride-The-Lightning/RTL/releases/tag/v0.15.2)
|
||||
- Update: Jam (JoinMarket Web UI) v0.3.0 [details](https://github.com/joinmarket-webui/jam/releases/tag/v0.3.0)
|
||||
- Update: CLBOSS 0.13.3 [details](https://github.com/ZmnSCPxj/clboss/releases/tag/v0.13.3)
|
||||
- Update: Electrum Server in Rust (electrs) v0.10.6 [details](https://github.com/romanz/electrs/blob/master/RELEASE-NOTES.md#0106-sep-29-2024)
|
||||
|
||||
## What's new in Version 1.11.2 of RaspiBlitz?
|
||||
|
||||
|
@ -1,7 +1,7 @@
|
||||
#!/bin/bash
|
||||
|
||||
# https://github.com/romanz/electrs/releases
|
||||
ELECTRSVERSION="v0.10.4"
|
||||
ELECTRSVERSION="v0.10.6"
|
||||
|
||||
# command info
|
||||
if [ $# -eq 0 ] || [ "$1" = "-h" ] || [ "$1" = "-help" ]; then
|
||||
@ -313,7 +313,7 @@ if [ "$1" = "install" ]; then
|
||||
|
||||
# verify
|
||||
sudo -u electrs /home/admin/config.scripts/blitz.git-verify.sh \
|
||||
"${PGPsigner}" "${PGPpubkeyLink}" "${PGPpubkeyFingerprint}" || exit 1
|
||||
"${PGPsigner}" "${PGPpubkeyLink}" "${PGPpubkeyFingerprint}" "${ELECTRSVERSION}" || exit 1
|
||||
|
||||
# build
|
||||
sudo -u electrs /home/electrs/.cargo/bin/cargo build --locked --release || exit 1
|
||||
@ -368,7 +368,6 @@ if [ "$1" = "1" ] || [ "$1" = "on" ]; then
|
||||
sudo -u electrs mkdir /home/electrs/.electrs 2>/dev/null
|
||||
echo "\
|
||||
log_filters = \"WARN\"
|
||||
timestamp = true
|
||||
jsonrpc_import = true
|
||||
index-batch-size = 10
|
||||
wait_duration_secs = 10
|
||||
@ -599,7 +598,7 @@ if [ "$1" = "update" ]; then
|
||||
sudo -u electrs git reset --hard $updateVersion
|
||||
|
||||
sudo -u electrs /home/admin/config.scripts/blitz.git-verify.sh \
|
||||
"${PGPsigner}" "${PGPpubkeyLink}" "${PGPpubkeyFingerprint}" || exit 1
|
||||
"${PGPsigner}" "${PGPpubkeyLink}" "${PGPpubkeyFingerprint}" "${updateVersion}" || exit 1
|
||||
|
||||
echo "# Installing build dependencies"
|
||||
sudo -u electrs curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sudo -u electrs sh -s -- --default-toolchain none -y
|
||||
@ -612,6 +611,8 @@ if [ "$1" = "update" ]; then
|
||||
# update config
|
||||
sudo -u electrs sed -i "/^server_banner = /d" /home/electrs/.electrs/config.toml
|
||||
sudo -u electrs bash -c "echo 'server_banner = \"Welcome to electrs $updateVersion - the Electrum Rust Server on your RaspiBlitz\"' >> /home/electrs/.electrs/config.toml"
|
||||
# remove the deprecated timestamp entry
|
||||
sudo -u electrs sed -i '/^timestamp = true/d' /home/electrs/.electrs/config.toml
|
||||
|
||||
echo "# Updated Electrs to $updateVersion"
|
||||
fi
|
||||
|
Loading…
x
Reference in New Issue
Block a user