Skip to content

Commit

Permalink
fix: single account recovery
Browse files Browse the repository at this point in the history
  • Loading branch information
nicole-obrien committed May 16, 2024
1 parent cf7a627 commit a1f76b0
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@
isDepthSearch = true
recoverAccountsPayload = {
accountStartIndex: isSingleAccountSearch ? $selectedAccountIndex : accountGapLimit,
accountGapLimit: isSingleAccountSearch ? 0 : 1,
accountGapLimit: 1,
addressGapLimit: isSingleAccountSearch
? addressGapLimit
: (searchCount - depthSearchCount) * addressGapLimit,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@
const recoverAccountsPayload: RecoverAccountsPayload = {
accountStartIndex,
accountGapLimit,
addressGapLimit: 0,
addressGapLimit: 1,
syncOptions: { ...DEFAULT_SYNC_OPTIONS, addressStartIndex: 0 },
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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,
},
Expand Down

0 comments on commit a1f76b0

Please sign in to comment.