Skip to content
Open
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
34 changes: 28 additions & 6 deletions rootfs/standard/usr/bin/mynode-install-custom-bitcoin
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down Expand Up @@ -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
Expand Down
3 changes: 2 additions & 1 deletion rootfs/standard/usr/bin/mynode_gen_bitcoin_config.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
5 changes: 3 additions & 2 deletions rootfs/standard/var/www/mynode/templates/settings.html
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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),
Expand Down