Rename outputSum
MODIFY
WalletWasabi/ChaumianCoinJoin/Alice.cs
WalletWasabi/ChaumianCoinJoin/Alice.cs
@@ -17,13 +17,13 @@ namespace WalletWasabi.ChaumianCoinJoin
public Money FeeToPay { get; }
- public Money OutputSum { get; }
+ public Money OutputSumWithoutCoordinatorFeeAndDenomination { get; }
public Dictionary<OutPoint, TxOut> Inputs { get; }
public Script ChangeOutputScript { get; }
- public Money GetChangeAmount(Money denomination, Money coordinatorFee) => OutputSum - denomination - coordinatorFee;
+ public Money GetChangeAmount(Money denomination, Money coordinatorFee) => OutputSumWithoutCoordinatorFeeAndDenomination - denomination - coordinatorFee;
public Alice(Dictionary<OutPoint, TxOut> inputs, Money feeToPay, Script changeOutputScript)
{
@@ -46,7 +46,7 @@ namespace WalletWasabi.ChaumianCoinJoin
InputSum = inputs.Sum(x => x.Value.Value);
- OutputSum = InputSum - FeeToPay;
+ OutputSumWithoutCoordinatorFeeAndDenomination = InputSum - FeeToPay;
}
}
}

MODIFY
WalletWasabi/ChaumianCoinJoin/CcjRound.cs
WalletWasabi/ChaumianCoinJoin/CcjRound.cs
@@ -125,7 +125,7 @@ namespace WalletWasabi.ChaumianCoinJoin
// Build CoinJoin
// 1. Set new denomination: minor optimization.
- Money newDenomination = Alices.Min(x => x.OutputSum);
+ Money newDenomination = Alices.Min(x => x.OutputSumWithoutCoordinatorFeeAndDenomination);
var transaction = new Transaction();
// 2. Add Bob outputs.

Rename outputSum