Minimal readability improvement of CJ.
MODIFY
WalletWasabi/CoinJoin/Coordinator/Rounds/CoordinatorRound.cs
WalletWasabi/CoinJoin/Coordinator/Rounds/CoordinatorRound.cs
@@ -618,14 +618,15 @@ namespace WalletWasabi.CoinJoin.Coordinator.Rounds
private bool CanUseAdditionalOutputs(Money newDenomination)
{
- bool tinkerWithAdditionalMixingLevels = !Alices.All(x => x.BlindedOutputScripts.Length == 1);
- foreach (Alice alice in Alices)
- {
- if (!tinkerWithAdditionalMixingLevels)
+ // If all alices only registeredone blinded output, then we cannot tinker with additional denomination.
+ if (Alices.All(x => x.BlindedOutputScripts.Length == 1))
{
- break;
+ return false;
}
+ bool tinkerWithAdditionalMixingLevels = true;
+ foreach (Alice alice in Alices)
+ {
// Check if inputs have enough coins.
Money networkFeeToPay = (alice.Inputs.Count() * FeePerInputs) + (2 * FeePerOutputs);
Money changeAmount = alice.InputSum - (newDenomination + networkFeeToPay);

Minimal readability improvement of CJ.