From a1f76b07736146616fea360f16ae0130736bcc16 Mon Sep 17 00:00:00 2001 From: Nicole O'Brien Date: Thu, 16 May 2024 16:48:39 +0100 Subject: [PATCH] fix: single account recovery --- .../desktop/components/popup/popups/SyncAccountsPopup.svelte | 2 +- .../views/restore-profile/views/BalanceFinderView.svelte | 2 +- .../default-account-recovery-configuration.constant.ts | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/packages/desktop/components/popup/popups/SyncAccountsPopup.svelte b/packages/desktop/components/popup/popups/SyncAccountsPopup.svelte index 10fe7f727a..c62141e6c9 100644 --- a/packages/desktop/components/popup/popups/SyncAccountsPopup.svelte +++ b/packages/desktop/components/popup/popups/SyncAccountsPopup.svelte @@ -75,7 +75,7 @@ isDepthSearch = true recoverAccountsPayload = { accountStartIndex: isSingleAccountSearch ? $selectedAccountIndex : accountGapLimit, - accountGapLimit: isSingleAccountSearch ? 0 : 1, + accountGapLimit: 1, addressGapLimit: isSingleAccountSearch ? addressGapLimit : (searchCount - depthSearchCount) * addressGapLimit, diff --git a/packages/desktop/views/onboarding/views/restore-profile/views/BalanceFinderView.svelte b/packages/desktop/views/onboarding/views/restore-profile/views/BalanceFinderView.svelte index b76ac46bd0..fdc6b09d92 100644 --- a/packages/desktop/views/onboarding/views/restore-profile/views/BalanceFinderView.svelte +++ b/packages/desktop/views/onboarding/views/restore-profile/views/BalanceFinderView.svelte @@ -45,7 +45,7 @@ const recoverAccountsPayload: RecoverAccountsPayload = { accountStartIndex, accountGapLimit, - addressGapLimit: 0, + addressGapLimit: 1, syncOptions: { ...DEFAULT_SYNC_OPTIONS, addressStartIndex: 0 }, } diff --git a/packages/shared/src/lib/core/profile/constants/default-account-recovery-configuration.constant.ts b/packages/shared/src/lib/core/profile/constants/default-account-recovery-configuration.constant.ts index a40bc12753..0415d50222 100644 --- a/packages/shared/src/lib/core/profile/constants/default-account-recovery-configuration.constant.ts +++ b/packages/shared/src/lib/core/profile/constants/default-account-recovery-configuration.constant.ts @@ -4,13 +4,13 @@ import { AccountRecoveryConfiguration } from '../types' export const DEFAULT_ACCOUNT_RECOVERY_CONFIGURATION: AccountRecoveryConfiguration = { [ProfileType.Ledger]: { initialAccountRange: 3, - accountGapLimit: 0, + accountGapLimit: 1, numberOfRoundsBetweenBreadthSearch: 1, addressGapLimit: 5, }, [ProfileType.Software]: { initialAccountRange: 10, - accountGapLimit: 0, + accountGapLimit: 1, numberOfRoundsBetweenBreadthSearch: 1, addressGapLimit: 100, },