Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 22 additions & 0 deletions rootfs/standard/usr/bin/mynode-install-custom-bitcoin
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
5 changes: 5 additions & 0 deletions rootfs/standard/usr/bin/mynode_startup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
17 changes: 16 additions & 1 deletion rootfs/standard/var/www/mynode/templates/settings.html
Original file line number Diff line number Diff line change
Expand Up @@ -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",
"<p>This release adds enforcement of the one-year \"reduced data\" protocol change to the Bitcoin rules, beginning no later than September.</p>" +
"<p>Protocol changes require user consent to be effective, and if enforced inconsistently within the community may compromise your security or others!</p>" +
"<p>If you do not know what you are doing, you can learn more at https://bitcoinknots.org/learn/2026-rdts</p>" +
"<p>Note that to reject this softfork, you must implement your own rejection fork.</p>" +
"<p>Are you sure you want to install this version?</p>",
okFunction)
} else {
window.location.href='/settings/install-custom-bitcoin?version='+custom_bitcoin_choice
}
});

$("#logout_days").selectmenu({width: 70});
Expand Down Expand Up @@ -1124,6 +1138,7 @@
<option value="default">Bitcoin Core (default)</option>
<option value="bip110_autoupdate" {% if debian_version < 12 %}disabled{% endif %}>Bitcoin Knots + BIP-110 (latest)</option>
<option value="knots_autoupdate" {% if debian_version < 12 %}disabled{% endif %}>Bitcoin Knots (latest)</option>
<option value="knots_29_3_2" {% if debian_version < 12 %}disabled{% endif %}>Bitcoin Knots (v29.3.knots20260416rc1)</option>
<option value="knots_29_3" {% if debian_version < 12 %}disabled{% endif %}>Bitcoin Knots (v29.3)</option>
<option value="none">--- Old / Not Recommended ---</option>
<option value="knots_29_2_2" {% if debian_version < 12 %}disabled{% endif %}>Bitcoin Knots (v29.2.2)</option>
Expand Down