From f8514eb35f3088441e4b39853c969bfe480b3ea6 Mon Sep 17 00:00:00 2001 From: DJObleezy Date: Wed, 23 Apr 2025 10:01:52 -0700 Subject: [PATCH] Changed default wallet Update wallet address and improve user flow - Changed the `WALLET` environment variable in `docker-compose.yml` to a new Bitcoin address. - Updated the wallet address in the "Use Defaults" button handler in `boot.html`. - Modified the logic for user selection of 'N' to display the configuration form directly instead of redirecting to the dashboard. - Updated fallback messages to reflect the new title "MINING CONTROL SYSTEM". --- docker-compose.yml | 2 +- templates/boot.html | 14 +++++++++----- 2 files changed, 10 insertions(+), 6 deletions(-) diff --git a/docker-compose.yml b/docker-compose.yml index 350c1be..2021efb 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -16,7 +16,7 @@ services: - "5000:5000" environment: - REDIS_URL=redis://redis:6379 - - WALLET=bc1py5zmrtssheq3shd8cptpl5l5m3txxr5afynyg2gyvam6w78s4dlqqnt4v9 + - WALLET=35eS5Lsqw8NCjFJ8zhp9JaEmyvLDwg6XtS - POWER_COST=0 - POWER_USAGE=0 - LOG_LEVEL=INFO diff --git a/templates/boot.html b/templates/boot.html index 61768b4..4369dae 100644 --- a/templates/boot.html +++ b/templates/boot.html @@ -675,7 +675,7 @@ v.21 // Update Use Defaults button handler document.getElementById('use-defaults').addEventListener('click', function () { // Set default values including network fee - document.getElementById('wallet-address').value = "bc1py5zmrtssheq3shd8cptpl5l5m3txxr5afynyg2gyvam6w78s4dlqqnt4v9"; + document.getElementById('wallet-address').value = "35eS5Lsqw8NCjFJ8zhp9JaEmyvLDwg6XtS"; document.getElementById('power-cost').value = 0.0; document.getElementById('power-usage').value = 0.0; document.getElementById('network-fee').value = 0.0; @@ -776,10 +776,14 @@ v.21 } setTimeout(processNextMessage, 500); } else { - // If user selects 'N', just redirect to dashboard + // If user selects 'N', show configuration form directly without boot messages outputElement.innerHTML += "N\n\nDASHBOARD INITIALIZATION ABORTED.\n"; - outputElement.innerHTML += "\nUsing default configuration values.\n"; - setTimeout(redirectToDashboard, 2000); + outputElement.innerHTML += "\nPlease configure your mining setup:\n"; + + // Short pause and then show the configuration form + setTimeout(function () { + document.getElementById('config-form').style.display = 'block'; + }, 1000); } } catch (err) { setTimeout(redirectToDashboard, 1000); @@ -876,7 +880,7 @@ v.21 // Fallback messages (used immediately) function setupFallbackMessages() { bootMessages = [ - { text: "BITCOIN OS - MINING SYSTEM - v21.000.000\n", speed: 25, delay: 300 }, + { text: "BITCOIN OS - MINING CONTROL SYSTEM - v21.000.000\n", speed: 25, delay: 300 }, { text: "Copyright (c) 2009-2025 Satoshi Nakamoto\n", speed: 20, delay: 250 }, { text: "All rights reserved.\n\n", speed: 25, delay: 300 }, { text: "INITIALIZING SYSTEM...\n", speed: 25, delay: 300 },