From 7af2df91776f12f8cf21e7cb5837e276f4bb1a85 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?L=C3=A9o=20Haf?= Date: Fri, 7 Aug 2026 16:56:59 +0200 Subject: [PATCH] Update to Bitcoin Knots v29.4.knots20260508 --- .../usr/bin/mynode-install-custom-bitcoin | 34 +++++++++++++++---- .../usr/bin/mynode_gen_bitcoin_config.sh | 3 +- .../var/www/mynode/templates/settings.html | 5 +-- 3 files changed, 33 insertions(+), 9 deletions(-) diff --git a/rootfs/standard/usr/bin/mynode-install-custom-bitcoin b/rootfs/standard/usr/bin/mynode-install-custom-bitcoin index ebe3a2cb..23ae8733 100755 --- a/rootfs/standard/usr/bin/mynode-install-custom-bitcoin +++ b/rootfs/standard/usr/bin/mynode-install-custom-bitcoin @@ -95,10 +95,10 @@ if [ "$APP" = "core29x_autoupdate" ]; then echo "$CORE_29X_LATEST_VERSION" > $CUSTOM_BITCOIN_AUTOUPDATE_VERSION_FILE cd ~ elif [ "$APP" = "bip110_autoupdate" ]; then - BIP110_LATEST_VERSION="29.3.3-knots" # Must be unique each version (only used to track trigger upgrade) - BTC_UPGRADE_URL=https://bitcoinknots.org/files/29.x/29.3.knots20260508/bitcoin-29.3.knots20260508-$ARCH.tar.gz - BTC_SHASUM=https://bitcoinknots.org/files/29.x/29.3.knots20260508/SHA256SUMS - BTC_ASC=https://bitcoinknots.org/files/29.x/29.3.knots20260508/SHA256SUMS.asc + BIP110_LATEST_VERSION="29.4-knots" # Must be unique each version (only used to track trigger upgrade) + BTC_UPGRADE_URL=https://bitcoinknots.org/files/29.x/29.4.knots20260508/bitcoin-29.4.knots20260508-$ARCH.tar.gz + BTC_SHASUM=https://bitcoinknots.org/files/29.x/29.4.knots20260508/SHA256SUMS + BTC_ASC=https://bitcoinknots.org/files/29.x/29.4.knots20260508/SHA256SUMS.asc CURRENT="" if [ -f $CUSTOM_BITCOIN_AUTOUPDATE_VERSION_FILE ]; then @@ -113,8 +113,8 @@ elif [ "$APP" = "bip110_autoupdate" ]; then wget $BTC_UPGRADE_URL $BTC_SHASUM $BTC_ASC gpg --verify SHA256SUMS.asc SHA256SUMS sha256sum -c SHA256SUMS --ignore-missing - tar -xvf bitcoin-29.3.knots20260508-$ARCH.tar.gz - mv bitcoin-29.3.knots20260508 bitcoin + tar -xvf bitcoin-29.4.knots20260508-$ARCH.tar.gz + mv bitcoin-29.4.knots20260508 bitcoin install -m 0755 -o root -g root -t /usr/local/bin bitcoin/bin/* fi echo "bip110_autoupdate" > /home/bitcoin/.mynode/bitcoin_version @@ -369,6 +369,28 @@ elif [ "$APP" = "knots_29_3_3" ]; then echo "29.3.3-knots" > /home/bitcoin/.mynode/bitcoin_version_latest_custom echo "29.3.3-knots" > /mnt/hdd/mynode/settings/bitcoin_version_latest_custom + cd ~ +elif [ "$APP" = "knots_29_4" ]; then + BTC_UPGRADE_URL=https://bitcoinknots.org/files/29.x/29.4.knots20260508/bitcoin-29.4.knots20260508-$ARCH.tar.gz + BTC_SHASUM=https://bitcoinknots.org/files/29.x/29.4.knots20260508/SHA256SUMS + BTC_ASC=https://bitcoinknots.org/files/29.x/29.4.knots20260508/SHA256SUMS.asc + + rm -rf /opt/download + mkdir -p /opt/download + cd /opt/download + + # Download, install and verify + wget $BTC_UPGRADE_URL $BTC_SHASUM $BTC_ASC + gpg --verify SHA256SUMS.asc SHA256SUMS + sha256sum -c SHA256SUMS --ignore-missing + tar -xvf bitcoin-29.4.knots20260508-$ARCH.tar.gz + mv bitcoin-29.4.knots20260508 bitcoin + install -m 0755 -o root -g root -t /usr/local/bin bitcoin/bin/* + + echo "29.4-knots" > /home/bitcoin/.mynode/bitcoin_version + echo "29.4-knots" > /home/bitcoin/.mynode/bitcoin_version_latest_custom + echo "29.4-knots" > /mnt/hdd/mynode/settings/bitcoin_version_latest_custom + cd ~ elif [ "$APP" = "default" ]; then # Clear custom info and re-install bitcoin diff --git a/rootfs/standard/usr/bin/mynode_gen_bitcoin_config.sh b/rootfs/standard/usr/bin/mynode_gen_bitcoin_config.sh index b8d74dda..cec5a99a 100755 --- a/rootfs/standard/usr/bin/mynode_gen_bitcoin_config.sh +++ b/rootfs/standard/usr/bin/mynode_gen_bitcoin_config.sh @@ -149,7 +149,8 @@ else # append BIP-110 / RDTS settings if needed CHECK_CONSENSUS=$(cat /home/bitcoin/.mynode/bitcoin_version | head -n 1) - if [ "$CHECK_CONSENSUS" == "29.3.3-knots" ] || [ "$CHECK_CONSENSUS" == "bip110_autoupdate" ]; then + BIP110_VERSIONS=("29.4-knots" "29.3.3-knots" "bip110_autoupdate") + if [[ " ${BIP110_VERSIONS[*]} " == *" $CHECK_CONSENSUS "* ]]; then echo "" >> /mnt/hdd/mynode/bitcoin/bitcoin.conf echo "# BIP-110 / RDTS Settings (BIP 110 version of Bitcoin detected - $CHECK_CONSENSUS)" >> /mnt/hdd/mynode/bitcoin/bitcoin.conf echo "consensusrules=rdts" >> /mnt/hdd/mynode/bitcoin/bitcoin.conf diff --git a/rootfs/standard/var/www/mynode/templates/settings.html b/rootfs/standard/var/www/mynode/templates/settings.html index fdf2c949..b8847681 100644 --- a/rootfs/standard/var/www/mynode/templates/settings.html +++ b/rootfs/standard/var/www/mynode/templates/settings.html @@ -514,7 +514,7 @@ disabled: custom_bitcoin_choice == "none" }); $("#custom_bitcoin_install_button").on("click", function() { - bip110_confirmation_versions = ["knots_29_3_3", "bip110_autoupdate"] + bip110_confirmation_versions = ["knots_29_4", "knots_29_3_3", "bip110_autoupdate"] if (bip110_confirmation_versions.includes(custom_bitcoin_choice)) { var okFunction = function() { window.location.href='/settings/install-custom-bitcoin?version='+custom_bitcoin_choice @@ -1143,8 +1143,9 @@ ("bip110_autoupdate", "Bitcoin Knots + BIP-110 (autoupdate)", True), ("none", "--- Specific Versions ---", False), ("knots_29_3_2", "Bitcoin Knots (v29.3.knots20260507)", True), - ("knots_29_3_3", "Bitcoin Knots + BIP-110 (v29.3.knots20260508)", True), + ("knots_29_4", "Bitcoin Knots + BIP-110 (v29.4.knots20260508)", True), ("none", "--- Old / Not Recommended ---", False), + ("knots_29_3_3", "Bitcoin Knots + BIP-110 (v29.3.knots20260508)", True), ("knots_29_3", "Bitcoin Knots (v29.3)", True), ("knots_29_2_2", "Bitcoin Knots (v29.2.2)", True), ("knots_29_1", "Bitcoin Knots (v29.1)", True),