Fool HS malicius attackers
MODIFY
WalletWasabi.Gui/Global.cs
WalletWasabi.Gui/Global.cs
@@ -132,7 +132,8 @@ namespace WalletWasabi.Gui
var addrManTask = InitializeAddressManagerBehaviorAsync();
var blocksFolderPath = Path.Combine(DataDir, $"Blocks{Network}");
- var connectionParameters = new NodeConnectionParameters { UserAgent = "/Satoshi:0.18.1/" };
+ var userAgent = Constants.UserAgents.RandomElement();
+ var connectionParameters = new NodeConnectionParameters { UserAgent = userAgent };
if (Config.UseTor)
{

MODIFY
WalletWasabi/Helpers/Constants.cs
WalletWasabi/Helpers/Constants.cs
@@ -93,5 +93,22 @@ namespace WalletWasabi.Helpers
public static string ClientSupportBackendVersionText => ClientSupportBackendVersionMin == ClientSupportBackendVersionMax
? ClientSupportBackendVersionMin
: $"{ClientSupportBackendVersionMin} - {ClientSupportBackendVersionMax}";
+
+ public static string[] UserAgents = new[]
+ {
+ "/Satoshi:0.20.0/",
+ "/Satoshi:0.19.1/",
+ "/Satoshi:0.19.0.1/",
+ "/Satoshi:0.19.0/",
+ "/Satoshi:0.18.1/",
+ "/Satoshi:0.18.0/",
+ "/Satoshi:0.17.1/",
+ "/Satoshi:0.17.0.1/",
+ "/Satoshi:0.17.0/",
+ "/Satoshi:0.16.3/",
+ "/Satoshi:0.16.2/",
+ "/Satoshi:0.16.1/",
+ "/Satoshi:0.16.0/",
+ };
}
}

Fool HS malicius attackers