Permalink
Browse files

Make sure the UnsignedCoinJoin goes through TransactionBuilder optimi…

…zations.
  • Loading branch information...
nopara73 committed Nov 3, 2018
1 parent 18fb923 commit d76a847774e8776f7ea4c4304c0d651d45a1f7b7
Showing with 1 addition and 0 deletions.
  1. +1 −0 WalletWasabi/Models/ChaumianCoinJoin/CcjRound.cs
@@ -308,6 +308,7 @@ public async Task ExecuteNextPhaseAsync(CcjRoundPhase expectedPhase)
var builder = Network.CreateTransactionBuilder();
UnsignedCoinJoin = builder
.ContinueToBuild(transaction)
.AddCoins(spentCoins) // It makes sure the UnsignedCoinJoin goes through TransactionBuilder optimizations.
.BuildTransaction(false);
// 8. Try optimize fees.

0 comments on commit d76a847

Please sign in to comment.