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
24 changes: 24 additions & 0 deletions rootfs/standard/usr/bin/mynode-install-custom-bitcoin
Original file line number Diff line number Diff line change
Expand Up @@ -198,8 +198,32 @@ elif [ "$APP" = "knots_29_2" ]; then
echo "29.2-knots" > /home/bitcoin/.mynode/bitcoin_version_latest_custom
echo "29.2-knots" > /mnt/hdd/mynode/settings/bitcoin_version_latest_custom

cd ~
elif [ "$APP" = "latest-knots" ]; then
BTC_UPGRADE_URL=https://bitcoinknots.org/files/29.x/29.2.knots20251110/bitcoin-29.2.knots20251110-$ARCH.tar.gz
BTC_SHASUM=https://bitcoinknots.org/files/29.x/29.2.knots20251110/SHA256SUMS
BTC_ASC=https://bitcoinknots.org/files/29.x/29.2.knots20251110/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.2.knots20251110-$ARCH.tar.gz
mv bitcoin-29.2.knots20251110 bitcoin
install -m 0755 -o root -g root -t /usr/local/bin bitcoin/bin/*

echo "latest-knots" > /home/bitcoin/.mynode/bitcoin_version
echo "latest-knots" > /home/bitcoin/.mynode/bitcoin_version_latest_custom
echo "latest-knots" > /mnt/hdd/mynode/settings/bitcoin_version_latest_custom
touch /mnt/hdd/mynode/settings/bitcoin_implementation_choosen

cd ~
elif [ "$APP" = "default" ]; then
touch /mnt/hdd/mynode/settings/bitcoin_implementation_choosen
# Clear custom info and re-install bitcoin
echo "unknown" > /home/bitcoin/.mynode/bitcoin_version
rm -f /home/bitcoin/.mynode/bitcoin_version_latest_custom
Expand Down
4 changes: 4 additions & 0 deletions rootfs/standard/usr/bin/mynode_startup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -333,6 +333,10 @@ if [ ! -f /mnt/hdd/mynode/settings/btc_network_settings_defaulted ] &&
fi
echo "drive_mounted" > $MYNODE_STATUS_FILE

if [ ! -f /mnt/hdd/mynode/settings/bitcoin_implementation_choosen ]; then
echo "choose_implementation" > $MYNODE_STATUS_FILE
fi

# BTC Config
source /usr/bin/mynode_gen_bitcoin_config.sh

Expand Down
1 change: 1 addition & 0 deletions rootfs/standard/var/pynode/device_info.py
Original file line number Diff line number Diff line change
Expand Up @@ -448,6 +448,7 @@ def get_swap_size():
STATE_DOCKER_RESET = "docker_reset"
STATE_GEN_DHPARAM = "gen_dhparam"
STATE_CHOOSE_NETWORK = "choose_network"
STATE_CHOOSE_IMPLEMENTATION = "choose_implementation"
STATE_QUICKSYNC_DOWNLOAD = "quicksync_download"
STATE_QUICKSYNC_COPY = "quicksync_copy"
STATE_QUICKSYNC_RESET = "quicksync_reset"
Expand Down
6 changes: 6 additions & 0 deletions rootfs/standard/var/www/mynode/mynode.py
Original file line number Diff line number Diff line change
Expand Up @@ -246,6 +246,12 @@ def index():
"ui_settings": read_ui_settings()
}
return render_template('choose_network.html', **templateData)
elif status == STATE_CHOOSE_IMPLEMENTATION:
templateData = {
"title": "Choose Bitcoin Implementation",
"ui_settings": read_ui_settings()
}
return render_template('choose_bitcoin_implementation.html', **templateData)
elif status == STATE_DOCKER_RESET:
templateData = {
"title": "MyNode",
Expand Down
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Original file line number Diff line number Diff line change
@@ -0,0 +1,75 @@
<!DOCTYPE html lang="en">
<head>
<title>{{ title }}</title>
{% include 'includes/head.html' %}
<meta http-equiv="refresh" content="3600">

<script>
$(document).ready(function() {


});
</script>

<style>
td, th {
border-top: none !important;
}
</style>

</head>

<body>
{% include 'includes/logo_header.html' %}

{% include 'includes/message_display.html' %}

<div class="state_header">Choose Bitcoin implementation</div>

<div class="format_div" style="width: 500px;">

<table style="margin: auto; width: 500px; text-align: center;">
<tr>
<td><img style="width: 160px; margin: auto;" src="{{ url_for('static', filename="images/knots.png")}}"/></td>
<td></td>
<td><img style="width: 160px; margin: auto;" src="{{ url_for('static', filename="images/core.png")}}"/></td>
</tr>
<tr>
<tr style="font-size: 20px;">
<td><b>Bitcoin Knots</b></td>
<td></td>
<td><b>Bitcoin Core</b></td>
</tr>
</tr>
<tr>
<td>
<br/>
<p>Focused on monetary propriety of Bitcoin</p>
<p>Extensive control over node configuration</p>
<br/>
</td>
<td></td>
<td>
<br/>
<p>Most widely used implementation</p>
<p>&nbsp;</p>
<br/>
</td>
</tr>
<tr>
<td><a href="/settings/install-custom-bitcoin?version=latest-knots" style="width: 80%;" class="ui-button ui-widget ui-corner-all">Choose Bitcoin Knots</a></td>
<td></td>
<td><a href="/settings/install-custom-bitcoin?version=default" style="width: 80%;" class="ui-button ui-widget ui-corner-all">Choose Bitcoin Core</a></td>
</tr>
</table>

<br/>

<p><small><i>Note: This can be changed later on the settings page.</i></small></p>

</div>

<div style="height: 40px;">&nbsp;</div>
{% include 'includes/footer.html' %}
</body>
</html>
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="latest-knots" {% if debian_version < 12 %}disabled{% endif %}>Latest Bitcoin Knots</option>
<option value="knots_29_2" {% if debian_version < 12 %}disabled{% endif %}>Bitcoin Knots (v29.2)</option>
<option value="knots_29_1" {% if debian_version < 12 %}disabled{% endif %}>Bitcoin Knots (v29.1)</option>
<option value="none">--- Old / Not Recommended ---</option>
Expand Down