Use more expressive naming
RENAME
WalletWasabi/WabiSabi/Backend/Banning/Judge.cs
WalletWasabi/WabiSabi/Backend/Banning/UtxoJudge.cs
@@ -11,15 +11,15 @@ namespace WalletWasabi.WabiSabi.Backend.Banning
/// <summary>
/// Judge sends UTXOs to prison.
/// </summary>
- public class Judge : PeriodicRunner
+ public class UtxoJudge : PeriodicRunner
{
/// <param name="period">How often to make judgements.</param>
- public Judge(TimeSpan period, string prisonFilePath) : base(period)
+ public UtxoJudge(TimeSpan period, string prisonFilePath) : base(period)
{
- Prison = Prison.FromFileOrEmpty(prisonFilePath);
+ Prison = UtxoPrison.FromFileOrEmpty(prisonFilePath);
}
- public Prison Prison { get; }
+ public UtxoPrison Prison { get; }
protected override async Task ActionAsync(CancellationToken cancel)
{

RENAME
WalletWasabi/WabiSabi/Backend/Banning/Prison.cs
WalletWasabi/WabiSabi/Backend/Banning/UtxoPrison.cs
@@ -13,9 +13,9 @@ namespace WalletWasabi.WabiSabi.Backend.Banning
/// <summary>
/// Malicious UTXOs are sent here.
/// </summary>
- public class Prison
+ public class UtxoPrison
{
- private Prison(string filePath, Dictionary<OutPoint, Inmate> inmates)
+ private UtxoPrison(string filePath, Dictionary<OutPoint, Inmate> inmates)
{
FilePath = filePath;
Inmates = inmates;
@@ -25,7 +25,7 @@ namespace WalletWasabi.WabiSabi.Backend.Banning
private string FilePath { get; }
- public static Prison FromFileOrEmpty(string filePath)
+ public static UtxoPrison FromFileOrEmpty(string filePath)
{
var inmates = new Dictionary<OutPoint, Inmate>();
if (File.Exists(filePath))
@@ -45,7 +45,7 @@ namespace WalletWasabi.WabiSabi.Backend.Banning
}
}
- return new Prison(filePath, inmates);
+ return new UtxoPrison(filePath, inmates);
}
public async Task ToFileAsync()

MODIFY
WalletWasabi/WabiSabi/WabiSabiCoordinator.cs
WalletWasabi/WabiSabi/WabiSabiCoordinator.cs
@@ -34,7 +34,7 @@ namespace WalletWasabi.WabiSabi
public string WorkDir { get; }
public WabiSabiConfig Config { get; }
public ConfigWatcher ConfigWatcher { get; }
- public Judge Judge { get; }
+ public UtxoJudge Judge { get; }
protected override async Task ExecuteAsync(CancellationToken stoppingToken)
{

Use more expressive naming