aboutsummaryrefslogtreecommitdiffstats
path: root/tools/electrum-ws.test.js
Commit message (Collapse)AuthorAgeFilesLines
* electrum-ws.test: a real bun test that skips when no bridge listens on :50003Adam Soltys8 days1-27/+39
| | | | Co-Authored-By: Claude Opus 5.5 <[email protected]>
* Regtest realtime via a local Electrum-over-WebSocket bridgeAdam Soltys2026-06-271-0/+44
On regtest there's no realtime push (coinos watcher is mainnet-only), so the UI only updated on the 5–10s poll — a funded tx took a while to appear and a just-mined block stayed "pending" until the next reconcile. electrs speaks the Electrum protocol the watcher already understands, but only over TCP; route it through a small WS<->TCP bridge (see coinos-server/electrum-ws) so the wallet subscribes scripthashes and reconciles instantly on each notification. Data still comes from esplora; this only adds the push channel. Configurable in Settings (default ws://localhost:50003); falls back to polling if unreachable. Co-Authored-By: Claude Opus 4.8 <[email protected]>