Make sure GetSmallestRegistrationTimeout returns 0 if no rounds are registered.
MODIFY
WalletWasabi/Models/ChaumianCoinJoin/CcjClientState.cs
WalletWasabi/Models/ChaumianCoinJoin/CcjClientState.cs
@@ -143,10 +143,17 @@ namespace WalletWasabi.Models.ChaumianCoinJoin
public int GetSmallestRegistrationTimeout()
{
lock (StateLock)
+ {
+ if (Rounds.Count == 0)
+ {
+ return 0;
+ }
+ else
{
return Rounds.Min(x => x.State.RegistrationTimeout);
}
}
+ }
public CcjClientRound GetSingleOrDefaultRound(long roundId)
{

Make sure GetSmallestRegistrationTimeout returns 0 if no rounds are registered.