Add CoinJoinManager to global
MODIFY
WalletWasabi.Gui/Global.cs
WalletWasabi.Gui/Global.cs
@@ -41,6 +41,7 @@ namespace WalletWasabi.Gui
{
public class Global
{
+ public CoinJoinManager CoinJoinManager { get; private set; }
public const string ThemeBackgroundBrushResourceKey = "ThemeBackgroundBrush";
public const string ApplicationAccentForegroundBrushResourceKey = "ApplicationAccentForegroundBrush";
@@ -76,7 +77,7 @@ namespace WalletWasabi.Gui
public JsonRpcServer? RpcServer { get; private set; }
- public Global(string dataDir, Config config, UiConfig uiConfig, WalletManager walletManager)
+ public Global(string dataDir, Config config, UiConfig uiConfig, WalletManager walletManager, CoinJoinManager coinJoinManager)
{
using (BenchmarkLogger.Measure())
{
@@ -88,6 +89,7 @@ namespace WalletWasabi.Gui
HostedServices = new HostedServices();
WalletManager = walletManager;
+ CoinJoinManager = coinJoinManager;
WalletManager.OnDequeue += WalletManager_OnDequeue;
WalletManager.WalletRelevantTransactionProcessed += WalletManager_WalletRelevantTransactionProcessed;
@@ -142,7 +144,7 @@ namespace WalletWasabi.Gui
await LegalChecker.InitializeAsync(HostedServices.Get<UpdateChecker>()).ConfigureAwait(false);
cancel.ThrowIfCancellationRequested();
- SystemAwakeChecker? systemAwakeChecker = await SystemAwakeChecker.CreateAsync(WalletManager).ConfigureAwait(false);
+ SystemAwakeChecker? systemAwakeChecker = await SystemAwakeChecker.CreateAsync(CoinJoinManager).ConfigureAwait(false);
if (systemAwakeChecker is not null)
{

Add CoinJoinManager to global