Adjust blind counts
MODIFY
WalletWasabi.Backend/Controllers/ChaumianCoinJoinController.cs
WalletWasabi.Backend/Controllers/ChaumianCoinJoinController.cs
@@ -391,7 +391,10 @@ namespace WalletWasabi.Backend.Controllers
{
alice.State = AliceState.ConnectionConfirmed;
- resp.BlindedOutputSignatures = alice.BlindedOutputSignatures.Take(round.CountUsedMixingLevels()); // Don't give back more mixing levels than we'll use.
+ int takeBlindCount = round.CountUsedMixingLevels();
+ alice.BlindedOutputScripts = alice.BlindedOutputScripts.Take(takeBlindCount).ToArray();
+ alice.BlindedOutputSignatures = alice.BlindedOutputSignatures.Take(takeBlindCount);
+ resp.BlindedOutputSignatures = alice.BlindedOutputSignatures; // Don't give back more mixing levels than we'll use.
// Progress round if needed.
if (round.AllAlices(AliceState.ConnectionConfirmed))

MODIFY
WalletWasabi/Models/ChaumianCoinJoin/Alice.cs
WalletWasabi/Models/ChaumianCoinJoin/Alice.cs
@@ -23,7 +23,7 @@ namespace WalletWasabi.Models.ChaumianCoinJoin
public AliceState State { get; set; }
- public uint256[] BlindedOutputScripts { get; }
+ public uint256[] BlindedOutputScripts { get; set; }
public IEnumerable<BigInteger> BlindedOutputSignatures { get; set; }

MODIFY
WalletWasabi/Models/ChaumianCoinJoin/CcjRound.cs
WalletWasabi/Models/ChaumianCoinJoin/CcjRound.cs
@@ -757,7 +757,7 @@ namespace WalletWasabi.Models.ChaumianCoinJoin
{
using (RoundSynchronizerLock.Lock())
{
- return Alices.Sum(x => x.BlindedOutputScripts.Length);
+ return Alices.Sum(x => x.BlindedOutputSignatures.Count());
}
}

Adjust blind counts