diff options
| author | Adam Soltys <[email protected]> | 2026-06-27 11:17:30 -0700 |
|---|---|---|
| committer | Adam Soltys <[email protected]> | 2026-06-27 11:17:30 -0700 |
| commit | 2ab85e1335989f96b0beafe615d64c3a29fc0446 (patch) | |
| tree | f0b6a7524c1c48c73f13d46d5117b6a997c2140e | |
| parent | 45d7d233c26edc07d7ad0e68c310d02f0626fbe9 (diff) | |
| download | coinosv3-2ab85e1335989f96b0beafe615d64c3a29fc0446.tar.gz coinosv3-2ab85e1335989f96b0beafe615d64c3a29fc0446.zip | |
Cut 'coinos' data source over to our own Fulcrum (Electrum)
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) <[email protected]>
| -rw-r--r-- | src/api.js | 12 |
1 files changed, 6 insertions, 6 deletions
@@ -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 — |
