diff options
| author | Adam Soltys <[email protected]> | 2026-06-27 09:43:07 -0700 |
|---|---|---|
| committer | Adam Soltys <[email protected]> | 2026-06-27 09:43:07 -0700 |
| commit | 00bea1dbd226d065cdfaf7b56af4913324888264 (patch) | |
| tree | dc3ddf98f0f3748053e474b86090322223abefd9 /src/api.js | |
| parent | 33bbdd3c1a2c92e8d39d461f3b198f034283633b (diff) | |
| parent | aa7ccfeae4d778ab62decbd58c3ddb3f74268274 (diff) | |
| download | coinosv3-00bea1dbd226d065cdfaf7b56af4913324888264.tar.gz coinosv3-00bea1dbd226d065cdfaf7b56af4913324888264.zip | |
Merge branch 'master' into boltz-swaps
Diffstat (limited to 'src/api.js')
| -rw-r--r-- | src/api.js | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -157,6 +157,9 @@ export const COINOS_ELECTRUM = false; const COINOS_ELECTRUM_URL = 'wss://coinos.io/electrum'; export function getBackend() { + // Regtest runs Fulcrum (Electrum over WS) for both data and realtime push — + // matches prod and drops the esplora/electrs dependency. + if (getNetwork() === 'regtest') return 'electrum'; const m = getDataMode(); if (m === 'electrum') return 'electrum'; if (m === 'coinos' && COINOS_ELECTRUM) return 'electrum'; @@ -194,6 +197,7 @@ export function setElectrumServerConfig({ server, url }) { // addresses to a public server you didn't pick. const PUBLIC_ELECTRUM = () => ELECTRUM_PRESETS.filter((x) => x.url).map((x) => x.url); export function electrumCandidates() { + if (getNetwork() === 'regtest') return [getRegtestElectrumWs()]; // local Fulcrum if (getDataMode() === 'coinos' && COINOS_ELECTRUM) return [COINOS_ELECTRUM_URL, ...PUBLIC_ELECTRUM()]; const cfg = getElectrumServerConfig(); if (cfg.server === 'custom') return cfg.url.trim() ? [cfg.url.trim()] : []; |
