expose legal checker as a property on the synchroniser.
MODIFY
WalletWasabi.Gui/Global.cs
WalletWasabi.Gui/Global.cs
@@ -100,8 +100,8 @@ namespace WalletWasabi.Gui
? new HttpClientFactory(Config.TorSocks5EndPoint, backendUriGetter: () => Config.GetCurrentBackendUri())
: new HttpClientFactory(torEndPoint: null, backendUriGetter: () => Config.GetFallbackBackendUri());
- Synchronizer = new WasabiSynchronizer(Network, BitcoinStore, httpClientFactory);
LegalChecker = new(DataDir);
+ Synchronizer = new WasabiSynchronizer(Network, BitcoinStore, httpClientFactory, LegalChecker);
}
}

MODIFY
WalletWasabi/Services/WasabiSynchronizer.cs
WalletWasabi/Services/WasabiSynchronizer.cs
@@ -44,12 +44,13 @@ namespace WalletWasabi.Services
private long _blockRequests; // There are priority requests in queue.
/// <param name="httpClientFactory">The class takes ownership of the instance.</param>
- public WasabiSynchronizer(Network network, BitcoinStore bitcoinStore, HttpClientFactory httpClientFactory)
+ public WasabiSynchronizer(Network network, BitcoinStore bitcoinStore, HttpClientFactory httpClientFactory, LegalChecker legalChecker)
{
Network = network;
LastResponse = null;
_running = StateNotStarted;
BitcoinStore = bitcoinStore;
+ LegalChecker = legalChecker;
HttpClientFactory = httpClientFactory;
WasabiClient = httpClientFactory.SharedWasabiClient;
@@ -110,6 +111,8 @@ namespace WalletWasabi.Services
public BitcoinStore BitcoinStore { get; private set; }
+ public LegalChecker LegalChecker { get; }
+
public bool IsRunning => Interlocked.Read(ref _running) == StateRunning;
/// <summary>

expose legal checker as a property on the synchroniser.