File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 55 EdgePluginMap ,
66 EdgeSwapPlugin
77} from '../../types/types'
8+ import { ENABLED_NYM_MIX_FETCH } from '../../util/nym'
89import { RootAction } from '../actions'
910
1011export interface PluginsState {
@@ -57,6 +58,14 @@ export const plugins = (
5758 plugin . currencyInfo . displayName
5859 }
5960
61+ if ( ! ENABLED_NYM_MIX_FETCH ) {
62+ const { defaultSettings } = plugin . currencyInfo
63+ if ( defaultSettings != null ) {
64+ const { networkPrivacy, ...rest } = defaultSettings
65+ plugin . currencyInfo . defaultSettings = rest
66+ }
67+ }
68+
6069 out . currency [ pluginId ] = plugin
6170 }
6271 if ( 'swapInfo' in plugin ) out . swap [ pluginId ] = plugin
Original file line number Diff line number Diff line change @@ -17,7 +17,7 @@ import {
1717 EdgeFetchResponse ,
1818 EdgeIo
1919} from '../../types/types'
20- import { queueMixFetch } from '../../util/nym'
20+ import { ENABLED_NYM_MIX_FETCH , queueMixFetch } from '../../util/nym'
2121import { hideProperties } from '../hidden-properties'
2222import { makeNativeBridge } from './native-bridge'
2323import { WorkerApi , YAOB_THROTTLE_MS } from './react-native-types'
@@ -175,7 +175,7 @@ async function makeIo(logBackend: LogBackend): Promise<EdgeIo> {
175175 ) : Promise < EdgeFetchResponse > {
176176 const { corsBypass = 'auto' , privacy = 'none' } = opts ?? { }
177177
178- if ( privacy === 'nym' ) {
178+ if ( privacy === 'nym' && ENABLED_NYM_MIX_FETCH ) {
179179 // Use queued fetch to handle mixFetch's one-request-per-host limitation
180180 // initMixFetch is called within queueMixFetch
181181 const response = await queueMixFetch (
Original file line number Diff line number Diff line change 88
99import { EdgeLog } from '../types/types'
1010
11+ // TODO: Enable this when the NYM mixFetch client is ready for both platforms (iOS and Android)
12+ export const ENABLED_NYM_MIX_FETCH = false
13+
1114/**
1215 * Configuration options for the NYM mixFetch client.
1316 */
You can’t perform that action at this time.
0 commit comments