Change hard coded places
MODIFY
WalletWasabi.Gui/Config.cs
WalletWasabi.Gui/Config.cs
@@ -22,7 +22,6 @@ namespace WalletWasabi.Gui
public const int DefaultPrivacyLevelSome = 2;
public const int DefaultPrivacyLevelFine = 21;
public const int DefaultPrivacyLevelStrong = 50;
- public const int DefaultTorSock5Port = 9050;
public const int DefaultJsonRpcServerPort = 37128;
public static readonly Money DefaultDustThreshold = Money.Coins(Constants.DefaultDustThreshold);

MODIFY
WalletWasabi.Tests/Helpers/Common.cs
WalletWasabi.Tests/Helpers/Common.cs
@@ -26,7 +26,7 @@ namespace WalletWasabi.Tests.Helpers
Logger.SetModes(LogMode.Debug, LogMode.Console, LogMode.File);
}
- public static EndPoint TorSocks5Endpoint => new IPEndPoint(IPAddress.Loopback, 9050);
+ public static EndPoint TorSocks5Endpoint => new IPEndPoint(IPAddress.Loopback, 37150);
public static string TorLogsFile => Path.Combine(DataDir, "TorLogs.txt");
public static string TorDistributionFolder => Path.Combine(EnvironmentHelpers.GetFullBaseDirectory(), "TorDaemons");
public static TorSettings TorSettings => new(DataDir, TorLogsFile, TorDistributionFolder, terminateOnExit: false);

MODIFY
WalletWasabi.Tests/IntegrationTests/TorTests.cs
WalletWasabi.Tests/IntegrationTests/TorTests.cs
@@ -194,7 +194,7 @@ namespace WalletWasabi.Tests.IntegrationTests
[Fact]
public async Task TorRunningAsync()
{
- TorTcpConnectionFactory client1 = new(new IPEndPoint(IPAddress.Loopback, 9050));
+ TorTcpConnectionFactory client1 = new(new IPEndPoint(IPAddress.Loopback, 37150));
Assert.True(await client1.IsTorRunningAsync());
TorTcpConnectionFactory client2 = new(new IPEndPoint(IPAddress.Loopback, 9054));

MODIFY
WalletWasabi.Tests/UnitTests/Tor/Control/TorControlReplyReaderTests.cs
WalletWasabi.Tests/UnitTests/Tor/Control/TorControlReplyReaderTests.cs
@@ -16,7 +16,7 @@ namespace WalletWasabi.Tests.UnitTests.Tor.Control
{
[Theory]
[InlineData(StatusCode.OK, 1, "250 OK\r\n")]
- [InlineData(StatusCode.OK, 2, "250-SOCKSPORT=9050\r\n250 ORPORT=0\r\n")]
+ [InlineData(StatusCode.OK, 2, "250-SOCKSPORT=37150\r\n250 ORPORT=0\r\n")]
[InlineData(StatusCode.OK, 4, "250-PROTOCOLINFO 1\r\n250-AUTH METHODS=HASHEDPASSWORD\r\n250-VERSION Tor=\"0.4.3.5\"\r\n250 OK\r\n")]
[InlineData(StatusCode.AsynchronousEventNotify, 1, "650 CIRC 1000 EXTENDED moria1,moria2\r\n")]
public async Task WellformedTestsAsync(StatusCode expectedStatusCode, int expectedReplyLines, string data)

MODIFY
WalletWasabi.Tests/UnitTests/Tor/TorSettingsTests.cs
WalletWasabi.Tests/UnitTests/Tor/TorSettingsTests.cs
@@ -23,7 +23,7 @@ namespace WalletWasabi.Tests.UnitTests.Tor
string expected = string.Join(
" ",
- $"--SOCKSPort 127.0.0.1:9050",
+ $"--SOCKSPort 127.0.0.1:37150",
$"--CookieAuthentication 1",
$"--ControlPort 37151",
$"--CookieAuthFile \"{Path.Combine("temp", "tempDataDir", "control_auth_cookie")}\"",

Change hard coded places