Fix dequeuing coins from other round
MODIFY
WalletWasabi/Services/CcjClient.cs
WalletWasabi/Services/CcjClient.cs
@@ -850,16 +850,19 @@ namespace WalletWasabi.Services
var round = State.GetSingleOrDefaultRound(roundId);
if (round is null) continue;
+ if (round.CoinsRegistered.Contains(coinToDequeue))
+ {
if (!coinToDequeue.Unspent) // If coin was spent, well that sucks, except if it was spent by the tumbler in signing phase.
{
State.ClearRoundRegistration(round.State.RoundId);
continue;
}
- if (round.CoinsRegistered.Contains(coinToDequeue))
+ else
{
exceptions.Add(new NotSupportedException($"Cannot deque coin in {round.State.Phase} phase. Coin: {coinToDequeue.Index}:{coinToDequeue.TransactionId}."));
}
}
+ }
SmartCoin coinWaitingForMix = State.GetSingleOrDefaultFromWaitingList(coinToDequeue);
if (!(coinWaitingForMix is null)) // If it is not being mixed, we can just remove it.

Fix dequeuing coins from other round