Skip to content

Commit 45071b8

Browse files
committed
feat(suite): node bridge rollout only in EAP
1 parent b7b51d8 commit 45071b8

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed

packages/suite-desktop-core/src/modules/bridge.ts

+6-1
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,8 @@ const start = async (bridge: BridgeProcess | TrezordNode) => {
5252

5353
const getBridgeInstance = (store: Dependencies['store']) => {
5454
const legacyRequestedBySettings = store.getBridgeSettings().legacy;
55+
const { allowPrerelease } = store.getUpdateSettings();
56+
5557
const legacyRequestedByArg = bridgeLegacy || bridgeLegacyDev || bridgeLegacyTest;
5658

5759
// handle rollout
@@ -63,7 +65,10 @@ const getBridgeInstance = (store: Dependencies['store']) => {
6365
// note that this variable is duplicated with UI
6466
const NEW_BRIDGE_ROLLOUT_THRESHOLD = 0.1;
6567
const legacyBridgeReasonRollout =
66-
!isDevEnv && !skipNewBridgeRollout && newBridgeRollout >= NEW_BRIDGE_ROLLOUT_THRESHOLD;
68+
!allowPrerelease &&
69+
!isDevEnv &&
70+
!skipNewBridgeRollout &&
71+
newBridgeRollout >= NEW_BRIDGE_ROLLOUT_THRESHOLD;
6772

6873
if (legacyRequestedBySettings || legacyRequestedByArg || legacyBridgeReasonRollout) {
6974
return new BridgeProcess();

packages/suite/src/views/settings/SettingsDebug/TransportBackends.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ export const TransportBackends = () => {
110110
<SectionItem data-test="@settings/debug/processes/newBridgeRollout">
111111
<TextColumn
112112
title="New bridge rollout"
113-
description={`New bridge is being rolled out to only ${NEW_BRIDGE_ROLLOUT_THRESHOLD * 100}% of Trezor Suite instances. Your rollout score is ${((bridgeSettings.newBridgeRollout ?? 0) * 100).toFixed()}%`}
113+
description={`New bridge is being rolled out to only ${NEW_BRIDGE_ROLLOUT_THRESHOLD * 100}% of Trezor Suite instances that have applied for the Early access program. Your rollout score is ${((bridgeSettings.newBridgeRollout ?? 0) * 100).toFixed()}%`}
114114
/>
115115
</SectionItem>
116116
)}

0 commit comments

Comments
 (0)