Make sure no more coins are targeted for selection that how many we have
MODIFY
WalletWasabi/WabiSabi/Client/CoinJoinClient.cs
WalletWasabi/WabiSabi/Client/CoinJoinClient.cs
@@ -449,7 +449,9 @@ public class CoinJoinClient
.ToArray();
// How many inputs do we want to provide to the mix?
- int inputCount = consolidationMode ? MaxInputsRegistrableByWallet : GetInputTarget(filteredCoins.Length, rnd);
+ int inputCount = Math.Min(
+ filteredCoins.Length,
+ consolidationMode ? MaxInputsRegistrableByWallet : GetInputTarget(filteredCoins.Length, rnd));
var nonPrivateFilteredCoins = filteredCoins
.Where(x => x.HdPubKey.AnonymitySet < anonScoreTarget)

Make sure no more coins are targeted for selection that how many we have