add client side
MODIFY
WalletWasabi.Backend/Controllers/SoftwareController.cs
WalletWasabi.Backend/Controllers/SoftwareController.cs
@@ -15,7 +15,8 @@ public class SoftwareController : ControllerBase
{
ClientVersion = Constants.ClientVersion.ToString(3),
BackendMajorVersion = Constants.BackendMajorVersion,
- LegalDocumentsVersion = Constants.Ww1LegalDocumentsVersion.ToString()
+ Ww1LegalDocumentsVersion = Constants.Ww1LegalDocumentsVersion.ToString(),
+ Ww2LegalDocumentsVersion = Constants.Ww2LegalDocumentsVersion.ToString()
};
/// <summary>

MODIFY
WalletWasabi/Backend/Models/Responses/VersionsResponse.cs
WalletWasabi/Backend/Models/Responses/VersionsResponse.cs
@@ -10,5 +10,8 @@ public class VersionsResponse
[JsonProperty(PropertyName = "BackenMajordVersion")]
public string BackendMajorVersion { get; set; }
- public string LegalDocumentsVersion { get; set; }
+ [JsonProperty(PropertyName = "LegalDocumentsVersion")]
+ public string Ww1LegalDocumentsVersion { get; set; }
+
+ public string Ww2LegalDocumentsVersion { get; set; }
}

MODIFY
WalletWasabi/Helpers/Constants.cs
WalletWasabi/Helpers/Constants.cs
@@ -62,7 +62,7 @@ public static class Constants
public static readonly Version HwiVersion = new("2.0.2");
public static readonly Version BitcoinCoreVersion = new("21.2");
public static readonly Version Ww1LegalDocumentsVersion = new(2, 0);
- public static readonly Version Ww2LegalDocumentsVersion = new(2, 0, 1);
+ public static readonly Version Ww2LegalDocumentsVersion = new(0, 1);
// Defined in hours. Do not modify these values or the order!
public static readonly int[] CoinJoinFeeRateMedianTimeFrames = new[] { 24, 168, 720 };

MODIFY
WalletWasabi/Services/LegalChecker.cs
WalletWasabi/Services/LegalChecker.cs
@@ -11,7 +11,7 @@ namespace WalletWasabi.Services;
public class LegalChecker : IDisposable
{
- public const string LegalFolderName = "Legal";
+ public const string LegalFolderName = "Legal2";
public const string ProvisionalLegalFolderName = "Provisional";
private bool _disposedValue;

MODIFY
WalletWasabi/WebClients/Wasabi/WasabiClient.cs
WalletWasabi/WebClients/Wasabi/WasabiClient.cs
@@ -235,7 +235,7 @@ public class WasabiClient
using HttpContent content = response.Content;
var resp = await content.ReadAsJsonAsync<VersionsResponse>().ConfigureAwait(false);
- return (Version.Parse(resp.ClientVersion), ushort.Parse(resp.BackendMajorVersion), Version.Parse(resp.LegalDocumentsVersion));
+ return (Version.Parse(resp.ClientVersion), ushort.Parse(resp.BackendMajorVersion), Version.Parse(resp.Ww2LegalDocumentsVersion));
}
public async Task<UpdateStatus> CheckUpdatesAsync(CancellationToken cancel)

add client side