store the client's new version in UpdateStatus
MODIFY
WalletWasabi/Models/UpdateStatus.cs
WalletWasabi/Models/UpdateStatus.cs
@@ -4,12 +4,13 @@ namespace WalletWasabi.Models
{
public class UpdateStatus : IEquatable<UpdateStatus>
{
- public UpdateStatus(bool backendCompatible, bool clientUpToDate, Version legalDocumentsVersion, ushort currentBackendMajorVersion)
+ public UpdateStatus(bool backendCompatible, bool clientUpToDate, Version legalDocumentsVersion, ushort currentBackendMajorVersion, Version clientVersion)
{
BackendCompatible = backendCompatible;
ClientUpToDate = clientUpToDate;
LegalDocumentsVersion = legalDocumentsVersion;
CurrentBackendMajorVersion = currentBackendMajorVersion;
+ ClientVersion = clientVersion;
}
public bool ClientUpToDate { get; }
@@ -18,6 +19,8 @@ namespace WalletWasabi.Models
public Version LegalDocumentsVersion { get; }
public ushort CurrentBackendMajorVersion { get; }
+ public Version ClientVersion { get; }
+
#region EqualityAndComparison
public static bool operator ==(UpdateStatus? x, UpdateStatus? y)

MODIFY
WalletWasabi/Services/UpdateChecker.cs
WalletWasabi/Services/UpdateChecker.cs
@@ -13,7 +13,7 @@ namespace WalletWasabi.Services
public UpdateChecker(TimeSpan period, WasabiSynchronizer synchronizer) : base(period)
{
Synchronizer = synchronizer;
- UpdateStatus = new UpdateStatus(true, true, new Version(), 0);
+ UpdateStatus = new UpdateStatus(true, true, new Version(), 0, new Version());
WasabiClient = Synchronizer.HttpClientFactory.SharedWasabiClient;
Synchronizer.PropertyChanged += Synchronizer_PropertyChanged;
}

MODIFY
WalletWasabi/WebClients/Wasabi/WasabiClient.cs
WalletWasabi/WebClients/Wasabi/WasabiClient.cs
@@ -251,7 +251,7 @@ namespace WalletWasabi.WebClients.Wasabi
ApiVersion = currentBackendMajorVersion;
}
- return new UpdateStatus(backendCompatible, clientUpToDate, legalDocumentsVersion, currentBackendMajorVersion);
+ return new UpdateStatus(backendCompatible, clientUpToDate, legalDocumentsVersion, currentBackendMajorVersion, clientVersion);
}
#endregion software

store the client's new version in UpdateStatus