Remove extra initialization check.
MODIFY
WalletWasabi/Stores/BitcoinStore.cs
WalletWasabi/Stores/BitcoinStore.cs
@@ -29,8 +29,6 @@ namespace WalletWasabi.Stores
BlockRepository = blockRepository;
}
- public bool IsInitialized { get; private set; }
-
public IndexStore IndexStore { get; }
public AllTransactionStore TransactionStore { get; }
public SmartHeaderChain SmartHeaderChain => IndexStore.SmartHeaderChain;
@@ -54,8 +52,6 @@ namespace WalletWasabi.Stores
};
await Task.WhenAll(initTasks).ConfigureAwait(false);
-
- IsInitialized = true;
}
}

MODIFY
WalletWasabi/Wallets/Wallet.cs
WalletWasabi/Wallets/Wallet.cs
@@ -183,13 +183,6 @@ namespace WalletWasabi.Wallets
throw new NotSupportedException($"{nameof(Synchronizer)} is not running.");
}
- while (!BitcoinStore.IsInitialized)
- {
- await Task.Delay(100, cancel).ConfigureAwait(false);
-
- cancel.ThrowIfCancellationRequested();
- }
-
using (BenchmarkLogger.Measure())
{
await RuntimeParams.LoadAsync().ConfigureAwait(false);

Remove extra initialization check.