Change MaxGapLimit
MODIFY
WalletWasabi.Gui/Tabs/WalletManager/RecoverWallets/RecoverWalletViewModel.cs
WalletWasabi.Gui/Tabs/WalletManager/RecoverWallets/RecoverWalletViewModel.cs
@@ -221,9 +221,9 @@ namespace WalletWasabi.Gui.Tabs.WalletManager.RecoverWallets
{
errors.Add(ErrorSeverity.Error, $"Cannot be smaller than {KeyManager.AbsoluteMinGapLimit}.");
}
- else if (minGapLimit > 1_000_000)
+ else if (minGapLimit > KeyManager.MaxGapLimit)
{
- errors.Add(ErrorSeverity.Error, $"Cannot be larger than {1_000_000}.");
+ errors.Add(ErrorSeverity.Error, $"Cannot be larger than {KeyManager.MaxGapLimit}.");
}
}

MODIFY
WalletWasabi/Blockchain/Keys/KeyManager.cs
WalletWasabi/Blockchain/Keys/KeyManager.cs
@@ -20,6 +20,7 @@ namespace WalletWasabi.Blockchain.Keys
public class KeyManager
{
public const int AbsoluteMinGapLimit = 21;
+ public const int MaxGapLimit = 10_000;
// BIP84-ish derivation scheme
// m / purpose' / coin_type' / account' / change / address_index

Change MaxGapLimit