aboutsummaryrefslogtreecommitdiffstats
path: root/src/api.js
diff options
context:
space:
mode:
Diffstat (limited to 'src/api.js')
-rw-r--r--src/api.js4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/api.js b/src/api.js
index 5824120..42e953a 100644
--- a/src/api.js
+++ b/src/api.js
@@ -248,6 +248,10 @@ 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';
try {
const id = localStorage.getItem(nk(ARK_PROVIDER_KEY, net));
if (id && arkPresets(net).some((p) => p.id === id)) return id;