mirror of
https://github.com/cypherstack/stack_wallet.git
synced 2025-03-25 16:48:48 +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) {
|
if (coin == Coin.firo) {
|
||||||
maxUnusedAddressGap = 50;
|
maxUnusedAddressGap = 50;
|
||||||
}
|
}
|
||||||
const maxNumberOfIndexesToCheck = 1000;
|
|
||||||
|
int maxNumberOfIndexesToCheck = 1000;
|
||||||
|
// If Bitcoin Cash, multiply by 100.
|
||||||
|
if (coin == Coin.bitcoincash) {
|
||||||
|
maxNumberOfIndexesToCheck *= 100;
|
||||||
|
}
|
||||||
|
|
||||||
if (mnemonicList.isEmpty) {
|
if (mnemonicList.isEmpty) {
|
||||||
await manager.recoverFromMnemonic(
|
await manager.recoverFromMnemonic(
|
||||||
|
@ -262,7 +267,12 @@ class _RestoringWalletCardState extends ConsumerState<RestoringWalletCard> {
|
||||||
if (coin == Coin.firo) {
|
if (coin == Coin.firo) {
|
||||||
maxUnusedAddressGap = 50;
|
maxUnusedAddressGap = 50;
|
||||||
}
|
}
|
||||||
const maxNumberOfIndexesToCheck = 1000;
|
|
||||||
|
int maxNumberOfIndexesToCheck = 1000;
|
||||||
|
// If Bitcoin Cash, multiply by 100.
|
||||||
|
if (coin == Coin.bitcoincash) {
|
||||||
|
maxNumberOfIndexesToCheck *= 100;
|
||||||
|
}
|
||||||
|
|
||||||
if (mnemonicList.isEmpty) {
|
if (mnemonicList.isEmpty) {
|
||||||
await manager.recoverFromMnemonic(
|
await manager.recoverFromMnemonic(
|
||||||
|
|
Loading…
Reference in a new issue