Make maxgaplimit a UI concept
MODIFY
WalletWasabi.Gui/Tabs/WalletManager/RecoverWalletViewModel.cs
WalletWasabi.Gui/Tabs/WalletManager/RecoverWalletViewModel.cs
@@ -59,9 +59,9 @@ namespace WalletWasabi.Gui.Tabs.WalletManager
{
ValidationMessage = $"Min Gap Limit cannot be smaller than {KeyManager.AbsoluteMinGapLimit - 1}.";
}
- else if (MinGapLimit > KeyManager.AbsoluteMaxGapLimit)
+ else if (MinGapLimit > 1_000_000)
{
- ValidationMessage = $"Min Gap Limit cannot be larger than {KeyManager.AbsoluteMaxGapLimit}.";
+ ValidationMessage = $"Min Gap Limit cannot be larger than {1_000_000}.";
}
else if (!TryParseKeyPath(AccountKeyPath))
{

MODIFY
WalletWasabi/KeyManagement/KeyManager.cs
WalletWasabi/KeyManagement/KeyManager.cs
@@ -75,7 +75,6 @@ namespace WalletWasabi.KeyManagement
public HardwareWalletInfo HardwareWalletInfo { get; set; }
public const int AbsoluteMinGapLimit = 21;
- public const int AbsoluteMaxGapLimit = 1_000_000;
[JsonConstructor]
public KeyManager(BitcoinEncryptedSecretNoEC encryptedSecret, byte[] chainCode, HDFingerprint? masterFingerprint, ExtPubKey extPubKey, bool? passwordVerified, int? minGapLimit, BlockchainState blockchainState, string filePath = null, KeyPath accountKeyPath = null)

Make maxgaplimit a UI concept