Improve wallet bloat
MODIFY
WalletWasabi/CoinJoin/Client/Clients/CoinJoinClient.cs
WalletWasabi/CoinJoin/Client/Clients/CoinJoinClient.cs
@@ -620,7 +620,7 @@ namespace WalletWasabi.CoinJoin.Client.Clients
allLockedInternalKeys = keysToSurelyRegister.Concat(allLockedInternalKeys).Distinct();
// Prefer not to bloat the wallet:
- if (allLockedInternalKeys.Count() <= maximumMixingLevelCount)
+ if (keysTryNotToRegister.Length >= DestinationKeyManager.MinGapLimit / 2)
{
allLockedInternalKeys = allLockedInternalKeys.Concat(keysTryNotToRegister).Distinct();
}

Improve wallet bloat