Check phase argument
MODIFY
WalletWasabi/WabiSabi/Backend/Rounds/Round.cs
WalletWasabi/WabiSabi/Backend/Rounds/Round.cs
@@ -71,6 +71,11 @@ namespace WalletWasabi.WabiSabi.Backend.Rounds
public void SetPhase(Phase phase)
{
+ if (!Enum.IsDefined<Phase>(phase))
+ {
+ throw new ArgumentException($"Invalid phase {phase}. This is a bug.", nameof(phase));
+ }
+
Phase = phase;
if (phase == Phase.ConnectionConfirmation)

Check phase argument