mirror of
https://github.com/cypherstack/stack_wallet.git
synced 2024-12-23 11:59:30 +00:00
raise maxNumberOfIndexesToCheck for bch
This commit is contained in:
parent
c6a370e4f5
commit
4627af9208
1 changed files with 12 additions and 2 deletions
|
@ -117,7 +117,12 @@ class _RestoringWalletCardState extends ConsumerState<RestoringWalletCard> {
|
|||
if (coin == Coin.firo) {
|
||||
maxUnusedAddressGap = 50;
|
||||
}
|
||||
const maxNumberOfIndexesToCheck = 1000;
|
||||
|
||||
int maxNumberOfIndexesToCheck = 1000;
|
||||
// If Bitcoin Cash, multiply by 100.
|
||||
if (coin == Coin.bitcoincash) {
|
||||
maxNumberOfIndexesToCheck *= 100;
|
||||
}
|
||||
|
||||
if (mnemonicList.isEmpty) {
|
||||
await manager.recoverFromMnemonic(
|
||||
|
@ -262,7 +267,12 @@ class _RestoringWalletCardState extends ConsumerState<RestoringWalletCard> {
|
|||
if (coin == Coin.firo) {
|
||||
maxUnusedAddressGap = 50;
|
||||
}
|
||||
const maxNumberOfIndexesToCheck = 1000;
|
||||
|
||||
int maxNumberOfIndexesToCheck = 1000;
|
||||
// If Bitcoin Cash, multiply by 100.
|
||||
if (coin == Coin.bitcoincash) {
|
||||
maxNumberOfIndexesToCheck *= 100;
|
||||
}
|
||||
|
||||
if (mnemonicList.isEmpty) {
|
||||
await manager.recoverFromMnemonic(
|
||||
|
|
Loading…
Reference in a new issue