Exclude current round.
MODIFY
WalletWasabi/WabiSabi/Backend/Rounds/Arena.Partial.cs
WalletWasabi/WabiSabi/Backend/Rounds/Arena.Partial.cs
@@ -259,7 +259,11 @@ public partial class Arena : IWabiSabiApiRequestHandler
throw new WabiSabiProtocolException(WabiSabiProtocolErrorCode.AlreadyRegisteredScript, $"Round ({request.RoundId}): Already registered script.");
}
- var outputScripts = Rounds.Where(r => r.Phase != Phase.Ended).SelectMany(r => r.Bobs).Select(x => x.Script).ToHashSet();
+ var outputScripts = Rounds
+ .Where(r => r.Id != round.Id && r.Phase != Phase.Ended)
+ .SelectMany(r => r.Bobs)
+ .Select(x => x.Script)
+ .ToHashSet();
if (outputScripts.Contains(request.Script))
{
Logger.LogWarning($"Round ({request.RoundId}): Already registered script in some round.");

Exclude current round.