Removed TorHttpClient
MODIFY
WalletWasabi/Services/IndexDownloader.cs
WalletWasabi/Services/IndexDownloader.cs
@@ -21,8 +21,6 @@ namespace WalletWasabi.Services
{
public Network Network { get; }
- public TorHttpClient Client { get; }
-
public WasabiClient WasabiClient { get; }
public string IndexFilePath { get; }
@@ -67,7 +65,6 @@ namespace WalletWasabi.Services
public IndexDownloader(Network network, string indexFilePath, Uri indexHostUri, IPEndPoint torSocks5EndPoint = null)
{
Network = Guard.NotNull(nameof(network), network);
- Client = new TorHttpClient(indexHostUri, torSocks5EndPoint, isolateStream: false);
WasabiClient = new WasabiClient(indexHostUri, torSocks5EndPoint);
IndexFilePath = Guard.NotNullOrEmptyOrWhitespace(nameof(indexFilePath), indexFilePath);
@@ -225,7 +222,6 @@ namespace WalletWasabi.Services
await Task.Delay(50);
}
- Client?.Dispose();
WasabiClient?.Dispose();
}

MODIFY
WalletWasabi/Services/WalletService.cs
WalletWasabi/Services/WalletService.cs
@@ -619,7 +619,7 @@ namespace WalletWasabi.Services
Logger.LogInfo<WalletService>("Calculating dynamic transaction fee...");
Money feePerBytes = null;
- using (var client = new WasabiClient(IndexDownloader.Client.DestinationUri, IndexDownloader.Client.TorSocks5EndPoint))
+ using (var client = new WasabiClient(IndexDownloader.WasabiClient.TorClient.DestinationUri, IndexDownloader.WasabiClient.TorClient.TorSocks5EndPoint))
{
var fees = await client.GetFeesAsync(feeTarget);
feePerBytes = new Money(fees.Single().Value.Conservative);
@@ -833,7 +833,7 @@ namespace WalletWasabi.Services
public async Task SendTransactionAsync(SmartTransaction transaction)
{
- using (var client = new WasabiClient(IndexDownloader.Client.DestinationUri, IndexDownloader.Client.TorSocks5EndPoint))
+ using (var client = new WasabiClient(IndexDownloader.WasabiClient.TorClient.DestinationUri, IndexDownloader.WasabiClient.TorClient.TorSocks5EndPoint))
{
await client.BroadcastAsync(transaction);
}

Removed TorHttpClient