From 2ab85e1335989f96b0beafe615d64c3a29fc0446 Mon Sep 17 00:00:00 2001 From: Adam Soltys Date: Sat, 27 Jun 2026 11:17:30 -0700 Subject: Cut 'coinos' data source over to our own Fulcrum (Electrum) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Flip COINOS_ELECTRUM on: the default 'coinos' mode is now a full Electrum backend served same-origin at wss://halwallet.app/electrum (nginx -> Fulcrum on cs, synced + using bitcoind hashblock ZMQ), with the public Electrum servers as automatic failover. Replaces the explorer-REST-data + coinos-watcher-push setup — one connection to our own node now serves both data and instant notifications. Verified the endpoint end-to-end through Cloudflare (server.version + get_balance). Co-Authored-By: Claude Opus 4.8 (1M context) --- src/api.js | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/api.js b/src/api.js index bcc5f85..f364e92 100644 --- a/src/api.js +++ b/src/api.js @@ -111,12 +111,12 @@ export function getDataMode() { export function setDataMode(m) { try { localStorage.setItem(DATA_MODE_KEY, m === 'electrum' || m === 'explorer' ? m : 'coinos'); } catch {} } -// Cutover switch: flip to true once coinos runs a real Electrum server (Fulcrum) -// behind the /electrum endpoint. Until then 'coinos' mode = explorer REST data + -// coinos watcher push (the shim can't serve data). When true, 'coinos' becomes a -// full Electrum backend pointed at coinos, with public servers as failover. -export const COINOS_ELECTRUM = false; -const COINOS_ELECTRUM_URL = 'wss://coinos.io/electrum'; +// 'coinos' data-source mode is now a full Electrum backend pointed at our own +// Fulcrum (served same-origin at /electrum, proxied to the Fulcrum on cs), with +// the public Electrum servers as automatic failover. Set false to revert to the +// old explorer-REST-data + coinos-watcher-push behaviour. +export const COINOS_ELECTRUM = true; +const COINOS_ELECTRUM_URL = 'wss://halwallet.app/electrum'; export function getBackend() { // Regtest runs Fulcrum (Electrum over WS) for both data and realtime push — -- cgit v1.2.3