Revert "raise maxNumberOfIndexesToCheck for bch"

This reverts commit 4627af9208.
This commit is contained in:
sneurlax 2023-10-21 16:45:35 -05:00
parent 4627af9208
commit 5720f08aad

View file

@ -117,12 +117,7 @@ class _RestoringWalletCardState extends ConsumerState<RestoringWalletCard> {
if (coin == Coin.firo) {
maxUnusedAddressGap = 50;
}
int maxNumberOfIndexesToCheck = 1000;
// If Bitcoin Cash, multiply by 100.
if (coin == Coin.bitcoincash) {
maxNumberOfIndexesToCheck *= 100;
}
const maxNumberOfIndexesToCheck = 1000;
if (mnemonicList.isEmpty) {
await manager.recoverFromMnemonic(
@ -267,12 +262,7 @@ class _RestoringWalletCardState extends ConsumerState<RestoringWalletCard> {
if (coin == Coin.firo) {
maxUnusedAddressGap = 50;
}
int maxNumberOfIndexesToCheck = 1000;
// If Bitcoin Cash, multiply by 100.
if (coin == Coin.bitcoincash) {
maxNumberOfIndexesToCheck *= 100;
}
const maxNumberOfIndexesToCheck = 1000;
if (mnemonicList.isEmpty) {
await manager.recoverFromMnemonic(