electrum: wire wss://silentmode.st/electrum as first-choice (port 443 reachable)
Bns-indexer on VPS was only exposed on port 50011 via nginx, which corporate
firewalls, mobile carriers, and many VPNs block. Added an nginx location on
443 that proxies to the same 127.0.0.1:50010, giving us a browser-friendly
WSS endpoint on the standard HTTPS port.
* lib/electrum.js CHIPNET_ELECTRUM: wss://silentmode.st/electrum listed
first (used by registrar.connect() + everything that depends on it).
* lib/resolver-web.js CHIPNET_ELECTRUM: same, kept in lockstep per the
"change both together" comment.
* bns-register.js bundle rebuilt to bake the new list.
* portal.html imports the bundle with ?v= so Chrome's in-memory ES-module
map doesn't serve a stale copy across tabs.
Portal now connects successfully; next remaining issue is that
bns-indexer only supports (server.version, get_history, transaction.get) —
`blockchain.scripthash.listunspent` for wallet address queries is not
implemented, so the "list your names" step fails there. Follow-up: add a
GET /api/holdings/<address> to public-gateway.mjs backed by the existing
BCHN electrum access, so the portal can pull holdings over plain HTTP.
This commit is contained in:
parent
fd6f112cab
commit
6539f84b24
2 changed files with 12 additions and 3 deletions
|
|
@ -12,6 +12,11 @@
|
|||
// whole resolver down. A server reachable on 443 is therefore worth more than
|
||||
// three more on 50004; put your own there and list it first.
|
||||
export const CHIPNET_ELECTRUM = [
|
||||
// Silent Mode's own bns-indexer proxied over standard HTTPS/443 via nginx
|
||||
// (bns-electrum-wss vhost extended into silentmode-st). This is the entry
|
||||
// that makes the resolver work from every network, including corporate
|
||||
// firewalls and mobile carriers that block the non-standard ports below.
|
||||
"wss://silentmode.st/electrum",
|
||||
"wss://chipnet.bch.ninja:50004",
|
||||
"wss://chipnet.imaginary.cash:50004",
|
||||
"wss://tbch4.loping.net:62002",
|
||||
|
|
|
|||
|
|
@ -41,9 +41,13 @@ function canonicalKey(raw) {
|
|||
// best-effort fallback: when DNS works the fresh hostname is always used, and the
|
||||
// authoritative, updatable server list lives on-chain (see ELECTRUM_LIST_NAME).
|
||||
export const CHIPNET_ELECTRUM = [
|
||||
// Silent Mode's own BCHN-backed BNS-only indexer (Argus/src/indexer/bns-indexer.js).
|
||||
// Tried first so we prefer our own infrastructure; the public servers below
|
||||
// remain as fallbacks and cross-checks against a single-server view.
|
||||
// Silent Mode's own BCHN-backed BNS-only indexer, exposed on standard port
|
||||
// 443 so browsers on restrictive networks (corporate firewalls, mobile
|
||||
// carriers, VPNs) can reach it. Same backend as the :50011 endpoint below,
|
||||
// just proxied through the silentmode.st nginx on the normal https port.
|
||||
// Tried first so we prefer our own infrastructure on the most-reachable
|
||||
// route; the public servers below remain as fallbacks and cross-checks.
|
||||
{ url: "wss://silentmode.st/electrum", ip: "195.184.247.106" },
|
||||
{ url: "wss://coinspectrum.duckdns.org:50011", ip: "195.184.247.106" },
|
||||
{ url: "wss://chipnet.bch.ninja:50004", ip: "135.148.236.244" },
|
||||
{ url: "wss://chipnet.imaginary.cash:50004", ip: "66.29.152.199" },
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue