send bannedUntil to client and handle it
MODIFY
WalletWasabi/WabiSabi/Backend/Rounds/Arena.Partial.cs
WalletWasabi/WabiSabi/Backend/Rounds/Arena.Partial.cs
@@ -360,7 +360,7 @@ public partial class Arena : IWabiSabiApiRequestHandler
{
var bannedUntil = inmate.Punishment == Punishment.LongBanned ? inmate.Started + Config.ReleaseUtxoFromPrisonAfterLongBan : inmate.Started + Config.ReleaseUtxoFromPrisonAfter;
- var message = $"Input banned until: {bannedUntil}";
+ var message = $"Input banned until: {bannedUntil.ToUnixTimeSeconds()}";
if (inmate.Punishment == Punishment.LongBanned)
{

MODIFY
WalletWasabi/WabiSabi/Client/AliceClient.cs
WalletWasabi/WabiSabi/Client/AliceClient.cs
@@ -115,9 +115,11 @@ public class AliceClient
break;
case WabiSabiProtocolErrorCode.InputLongBanned:
- coin.BannedUntilUtc = DateTimeOffset.UtcNow.AddDays(31); // TODO: Date should be inside the exc. (backend)
+ var split = wpe.Message.Split(" ");
+ var bannedUntilUnixSeconds = long.Parse(split[^1]);
+ coin.BannedUntilUtc = DateTimeOffset.FromUnixTimeSeconds(bannedUntilUnixSeconds);
coin.SetIsBanned();
- Logger.LogInfo($"{coin.Coin.Outpoint} is long banned.");
+ Logger.LogInfo($"{coin.Coin.Outpoint} is long banned until {coin.BannedUntilUtc}.");
break;
case WabiSabiProtocolErrorCode.InputNotWhitelisted:

send bannedUntil to client and handle it