From 65064e2bb0eefb90c3585bf49fe7a5c038da6454 Mon Sep 17 00:00:00 2001 From: Adam Soltys Date: Sun, 16 Aug 2026 17:00:28 -0700 Subject: Staging wears its name on the logo and deals in play money: HAL_TARGET=staging stamps the brand, renames the PWA, and starts fresh wallets on Mutinynet — one master, no diverging branch MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-Authored-By: Claude Fable 5 Claude-Session: https://claude.ai/code/session_01JtaatFfAbx91Nh3xqKVqKz --- src/api.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'src/api.js') diff --git a/src/api.js b/src/api.js index c081cfe..c020a0c 100644 --- a/src/api.js +++ b/src/api.js @@ -6,6 +6,8 @@ // - a 429 from ANY request immediately backs off ALL subsequent requests // (global exponential pause), easing back as requests succeed. +import { STAGING } from './build-flags.js'; + // Block explorer selection, stored per network (see the per-network presets + // nk() helper below). Each network defaults to its first esplora preset; users // can pick another or a custom Esplora/electrs REST URL (their own node). @@ -41,7 +43,9 @@ export function getNetwork() { const n = localStorage.getItem(NETWORK_KEY); if (NETWORKS.some((x) => x.id === n)) return n; } catch {} - return 'mainnet'; + // Staging builds default fresh profiles to mutinynet (play money); a + // stored choice — including mainnet — always wins over the default. + return STAGING ? 'mutinynet' : 'mainnet'; } export function setNetwork(net) { try { localStorage.setItem(NETWORK_KEY, net); } catch {} -- cgit v1.2.3