Rename and class
MODIFY
WalletWasabi/WabiSabi/Client/CoinJoinManager.cs
WalletWasabi/WabiSabi/Client/CoinJoinManager.cs
@@ -29,7 +29,7 @@ public class CoinJoinManager : BackgroundService
public IWasabiHttpClientFactory HttpClientFactory { get; }
public RoundStateUpdater RoundStatusUpdater { get; }
public ServiceConfiguration ServiceConfiguration { get; }
- private ImmutableDictionary<string, CoinJoinTrackingData> TrackedCoinJoins { get; set; } = ImmutableDictionary<string, CoinJoinTrackingData>.Empty;
+ private ImmutableDictionary<string, CoinJoinTracker> TrackedCoinJoins { get; set; } = ImmutableDictionary<string, CoinJoinTracker>.Empty;
private CoinRefrigerator CoinRefrigerator { get; } = new();
public CoinJoinClientState HighestCoinJoinClientState
@@ -58,7 +58,7 @@ public class CoinJoinManager : BackgroundService
}
CoinJoinTrackingDataFactory coinJoinTrackingDataFactory = new(HttpClientFactory, RoundStatusUpdater, stoppingToken);
- var trackedCoinJoins = new Dictionary<string, CoinJoinTrackingData>();
+ var trackedCoinJoins = new Dictionary<string, CoinJoinTracker>();
while (!stoppingToken.IsCancellationRequested)
{
@@ -78,7 +78,7 @@ public class CoinJoinManager : BackgroundService
continue;
}
- CoinJoinTrackingData coinJoinTrackingData = coinJoinTrackingDataFactory.CreateCoinJoinTrackingData(openedWallet, coinCandidates);
+ CoinJoinTracker coinJoinTrackingData = coinJoinTrackingDataFactory.CreateCoinJoinTrackingData(openedWallet, coinCandidates);
trackedCoinJoins.Add(openedWallet.WalletName, coinJoinTrackingData);
WalletStatusChanged?.Invoke(this, new WalletStatusChangedEventArgs(openedWallet, IsCoinJoining: true));

RENAME
WalletWasabi/WabiSabi/Client/CoinJoinTrackingData.cs
WalletWasabi/WabiSabi/Client/CoinJoinTracker.cs
@@ -6,11 +6,11 @@ using WalletWasabi.Wallets;
namespace WalletWasabi.WabiSabi.Client;
-public record CoinJoinTrackingData : IDisposable
+public class CoinJoinTracker : IDisposable
{
private bool _disposedValue;
- public CoinJoinTrackingData(
+ public CoinJoinTracker(
Wallet wallet,
CoinJoinClient coinJoinClient,
IEnumerable<SmartCoin> coinCandidates,

MODIFY
WalletWasabi/WabiSabi/Client/CoinJoinTrackingDataFactory.cs
WalletWasabi/WabiSabi/Client/CoinJoinTrackingDataFactory.cs
@@ -22,7 +22,7 @@ public class CoinJoinTrackingDataFactory
private RoundStateUpdater RoundStatusUpdater { get; }
private CancellationToken CancellationToken { get; }
- public CoinJoinTrackingData CreateCoinJoinTrackingData(Wallet wallet, IEnumerable<SmartCoin> coinCandidates)
+ public CoinJoinTracker CreateCoinJoinTrackingData(Wallet wallet, IEnumerable<SmartCoin> coinCandidates)
{
var coinJoinClient = new CoinJoinClient(
HttpClientFactory,
@@ -31,6 +31,6 @@ public class CoinJoinTrackingDataFactory
RoundStatusUpdater,
wallet.ServiceConfiguration.MinAnonScoreTarget);
- return new CoinJoinTrackingData(wallet, coinJoinClient, coinCandidates, CancellationToken);
+ return new CoinJoinTracker(wallet, coinJoinClient, coinCandidates, CancellationToken);
}
}

Rename and class