diff --git a/rootfs/standard/usr/bin/mynode-install-custom-bitcoin b/rootfs/standard/usr/bin/mynode-install-custom-bitcoin index 4f955bc9..65d220d3 100755 --- a/rootfs/standard/usr/bin/mynode-install-custom-bitcoin +++ b/rootfs/standard/usr/bin/mynode-install-custom-bitcoin @@ -293,6 +293,28 @@ elif [ "$APP" = "knots_29_3" ]; then echo "29.3-knots" > /home/bitcoin/.mynode/bitcoin_version_latest_custom echo "29.3-knots" > /mnt/hdd/mynode/settings/bitcoin_version_latest_custom + cd ~ +elif [ "$APP" = "knots_29_3_2" ]; then + BTC_UPGRADE_URL=https://bitcoinknots.org/files/29.x/29.3.knots20260210/bitcoin-29.3.knots20260210-$ARCH.tar.gz + BTC_SHASUM=https://bitcoinknots.org/files/29.x/29.3.knots20260210/SHA256SUMS + BTC_ASC=https://bitcoinknots.org/files/29.x/29.3.knots20260210/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.3.knots20260210-$ARCH.tar.gz + mv bitcoin-29.3.knots20260210 bitcoin + install -m 0755 -o root -g root -t /usr/local/bin bitcoin/bin/* + + echo "29.3.2-knots" > /home/bitcoin/.mynode/bitcoin_version + echo "29.3.2-knots" > /home/bitcoin/.mynode/bitcoin_version_latest_custom + echo "29.3.2-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_startup.sh b/rootfs/standard/usr/bin/mynode_startup.sh index a57ba015..4d6195c2 100755 --- a/rootfs/standard/usr/bin/mynode_startup.sh +++ b/rootfs/standard/usr/bin/mynode_startup.sh @@ -539,6 +539,11 @@ echo "BITCOIN_GID=$BITCOIN_GID" >> /mnt/hdd/mynode/settings/.btcrpc_environment # Reset BTCARGS echo "BTCARGS=" > /mnt/hdd/mynode/bitcoin/env +CHECK_CONSENSUS=$(cat /home/bitcoin/.mynode/bitcoin_version | head -n 1) +if [ "$CHECK_CONSENSUS" == "29.3.2-knots" ]; then + echo "BTCARGS=-consensusrules=rdts" > /mnt/hdd/mynode/bitcoin/env +fi + # Set proper permissions on drive USER=$(stat -c '%U' /mnt/hdd/mynode/quicksync) diff --git a/rootfs/standard/var/www/mynode/templates/settings.html b/rootfs/standard/var/www/mynode/templates/settings.html index 706b0f7d..57ee9af8 100644 --- a/rootfs/standard/var/www/mynode/templates/settings.html +++ b/rootfs/standard/var/www/mynode/templates/settings.html @@ -513,7 +513,21 @@ disabled: true }); $("#custom_bitcoin_install_button").on("click", function() { - window.location.href='/settings/install-custom-bitcoin?version='+custom_bitcoin_choice + if (custom_bitcoin_choice == "knots_29_3_2") { + var okFunction = function() { + window.location.href='/settings/install-custom-bitcoin?version='+custom_bitcoin_choice + } + openConfirmDialog("confirm-dialog", + "Custom Bitcoin Version", + "
This release adds enforcement of the one-year \"reduced data\" protocol change to the Bitcoin rules, beginning no later than September.
" + + "Protocol changes require user consent to be effective, and if enforced inconsistently within the community may compromise your security or others!
" + + "If you do not know what you are doing, you can learn more at https://bitcoinknots.org/learn/2026-rdts
" + + "Note that to reject this softfork, you must implement your own rejection fork.
" + + "Are you sure you want to install this version?
", + okFunction) + } else { + window.location.href='/settings/install-custom-bitcoin?version='+custom_bitcoin_choice + } }); $("#logout_days").selectmenu({width: 70}); @@ -1124,6 +1138,7 @@ +