diff options
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; |
