aboutsummaryrefslogtreecommitdiffstats
path: root/src/api.js
diff options
context:
space:
mode:
Diffstat (limited to 'src/api.js')
-rw-r--r--src/api.js6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/api.js b/src/api.js
index ea63fdc..c0ecb4b 100644
--- a/src/api.js
+++ b/src/api.js
@@ -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;