Skip to content

Commit

Permalink
fix: search more than one account (#2502)
Browse files Browse the repository at this point in the history
  • Loading branch information
jeeanribeiro authored May 16, 2024
1 parent cfc16f9 commit 597c987
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 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: 0,
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 All @@ -72,7 +72,7 @@
depthSearch = true
recoverAccountsPayload = {
accountStartIndex: accountGapLimit,
accountGapLimit: 0,
accountGapLimit: 1,
addressGapLimit: (searchCount - depthSearchCount) * addressGapLimit,
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 597c987

Please sign in to comment.