diff options
| author | Adam Soltys <[email protected]> | 2026-09-22 10:14:59 -0700 |
|---|---|---|
| committer | Adam Soltys <[email protected]> | 2026-09-22 10:14:59 -0700 |
| commit | e59ed2d1106396750d1fdb15fe98a4b7ab2c80fc (patch) | |
| tree | 62def5369b7b0bc75075dcbd9d3ba82ff766e985 /src/api.js | |
| parent | b73d5b5db16bbd34385382574d2d454de0b5d505 (diff) | |
| download | coinosv3-e59ed2d1106396750d1fdb15fe98a4b7ab2c80fc.tar.gz coinosv3-e59ed2d1106396750d1fdb15fe98a4b7ab2c80fc.zip | |
Ark server is a setting again; an address on another server falls back to Lightning.
Settings → Advanced → Ark server: coinos, Second (ark.second.tech) or a
custom server, per network — the stored choice is honoured on mainnet
again. Ark state is kept per server, so switching hides but never loses
coins; the card says what the current server holds and asks before letting
go. After a switch the reusable address, the nostr advert and the payment
name's ark= instruction follow the new server.
Sends between servers can't be arkoor, so an Ark address that names a
different server (its first bytes hash the server key) is treated as no
Ark address at all in the pay ladder — a coinos name or npub then goes
over Lightning by itself — and a pasted one is refused with the reason.
Co-Authored-By: Claude Fable 5.1 <[email protected]>
Claude-Session: https://claude.ai/code/session_01Tmfg8k5f3TbNJS34qiqHAp
Diffstat (limited to 'src/api.js')
| -rw-r--r-- | src/api.js | 6 |
1 files changed, 2 insertions, 4 deletions
@@ -271,10 +271,8 @@ export function arkPresets(net = getNetwork()) { return ARK_PRESETS_BY_NET[net] || ARK_PRESETS_BY_NET.mainnet; } export function getArkProviderId(net = getNetwork()) { - // Mainnet always rides coinos — the provider picker was removed from - // Settings, so a stale stored choice must not silently win. Dev networks - // still honor a stored id (regtest/mutinynet testing needs it). - if (net === 'mainnet') return 'coinos'; + // A stored choice wins on every network (Settings → Advanced → Ark server + // offers coinos, Second, or a custom server); the default is coinos. try { const id = localStorage.getItem(nk(ARK_PROVIDER_KEY, net)); if (id && arkPresets(net).some((p) => p.id === id)) return id; |
