TransactionBroadcast uses new Tor stream
MODIFY
WalletWasabi/Blockchain/TransactionBroadcasting/TransactionBroadcaster.cs
WalletWasabi/Blockchain/TransactionBroadcasting/TransactionBroadcaster.cs
@@ -85,7 +85,7 @@ namespace WalletWasabi.Blockchain.TransactionBroadcasting
private async Task BroadcastTransactionToBackendAsync(SmartTransaction transaction)
{
Logger.LogInfo("Broadcasting with backend...");
- using (WasabiClient client = Synchronizer.WasabiClientFactory.NewBackendClient())
+ using (WasabiClient client = Synchronizer.WasabiClientFactory.NewBackendClient(true))
{
try
{

MODIFY
WalletWasabi/WebClients/Wasabi/WasabiClientFactory.cs
WalletWasabi/WebClients/Wasabi/WasabiClientFactory.cs
@@ -36,9 +36,9 @@ namespace WalletWasabi.WebClients.Wasabi
/// For privacy reasons, it is advisable to create a new instance of <see cref="WasabiClient"/>
/// for each HTTP request instead of reusing one instance for multiple HTTP requests.
/// </remarks>
- public WasabiClient NewBackendClient()
+ public WasabiClient NewBackendClient(bool isolateStream = false)
{
- TorHttpClient torHttpClient = new TorHttpClient(BackendUriGetter.Invoke(), TorEndpoint, isolateStream: false);
+ TorHttpClient torHttpClient = new TorHttpClient(BackendUriGetter.Invoke(), TorEndpoint, isolateStream: isolateStream);
return new WasabiClient(torHttpClient);
}
}

TransactionBroadcast uses new Tor stream