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
23 changes: 23 additions & 0 deletions rootfs/standard/usr/bin/mynode-install-custom-bitcoin
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ APP="$1"
# Import GPG keys specific to Custom Bitcoin versions
set +e
gpg --keyserver keys.openpgp.org --recv-keys CACC7CBB26B3D2EE8FC2F2BC0E37EBAB8574F005 # Leo Haf (Knots)
gpg --keyserver keyserver.ubuntu.com --recv-keys 2B97F03293744D70F6BBA82F2E3A66FF67F98B4F # Dathon Ohm (BIP-110)
set -e

# Determine arch
Expand Down Expand Up @@ -220,6 +221,28 @@ elif [ "$APP" = "knots_29_2_2" ]; then
echo "29.2.2-knots" > /home/bitcoin/.mynode/bitcoin_version_latest_custom
echo "29.2.2-knots" > /mnt/hdd/mynode/settings/bitcoin_version_latest_custom

cd ~
elif [ "$APP" = "bip110" ]; then
BTC_UPGRADE_URL=https://github.com/dathonohm/bitcoin/releases/download/v29.2.knots20251110%2Bbip110-v0.1rc2/bitcoin-29.2.knots20251110+bip110-v0.1rc2-$ARCH.tar.gz
BTC_SHASUM=https://raw.githubusercontent.com/dathonohm/guix.sigs/refs/heads/bip110/29.2.knots20251110%2Bbip110-v0.1rc2/dathonohm/all.SHA256SUMS
BTC_ASC=https://raw.githubusercontent.com/dathonohm/guix.sigs/refs/heads/bip110/29.2.knots20251110%2Bbip110-v0.1rc2/dathonohm/all.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 all.SHA256SUMS.asc all.SHA256SUMS
sha256sum -c all.SHA256SUMS --ignore-missing
tar -xvf bitcoin-29.2.knots20251110+bip110-v0.1rc2-$ARCH.tar.gz
mv bitcoin-29.2.knots20251110+bip110-v0.1rc2 bitcoin
install -m 0755 -o root -g root -t /usr/local/bin bitcoin/bin/*

echo "bip110" > /home/bitcoin/.mynode/bitcoin_version
echo "bip110" > /home/bitcoin/.mynode/bitcoin_version_latest_custom
echo "bip110" > /mnt/hdd/mynode/settings/bitcoin_version_latest_custom

cd ~
elif [ "$APP" = "default" ]; then
# Clear custom info and re-install bitcoin
Expand Down
1 change: 1 addition & 0 deletions rootfs/standard/var/www/mynode/templates/settings.html
Original file line number Diff line number Diff line change
Expand Up @@ -1109,6 +1109,7 @@
<option value="none" selected="selected">Choose...</option>
<option value="none">--- Recommended ---</option>
<option value="default">Default</option>
<option value="bip110" {% if debian_version < 12 %}disabled{% endif %}>Bitcoin Knots + BIP-110</option>
<option value="knots_29_2_2" {% if debian_version < 12 %}disabled{% endif %}>Bitcoin Knots (v29.2.knots20251110)</option>
<option value="none">--- Old / Not Recommended ---</option>
<option value="knots_29_2" {% if debian_version < 12 %}disabled{% endif %}>Bitcoin Knots (v29.2)</option>
Expand Down