Add anonimity set and finish status request
RENAME
HiddenWallet.ChaumianTumbler/Denomination/DenominationAlgorithm.cs
HiddenWallet.ChaumianTumbler/Configuration/DenominationAlgorithm.cs
@@ -3,7 +3,7 @@ using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
-namespace HiddenWallet.ChaumianTumbler.Denomination
+namespace HiddenWallet.ChaumianTumbler.Configuration
{
public enum DenominationAlgorithm
{

MODIFY
HiddenWallet.ChaumianTumbler/Controllers/TumblerController.cs
HiddenWallet.ChaumianTumbler/Controllers/TumblerController.cs
@@ -49,7 +49,9 @@ namespace HiddenWallet.ChaumianTumbler.Controllers
return new JsonResult(new StatusResponse
{
Phase = Global.StateMachine.Phase.ToString(),
- Denomination = Global.StateMachine.Denomination.ToString(fplus: false, trimExcessZero: true)
+ Denomination = Global.StateMachine.Denomination.ToString(fplus: false, trimExcessZero: true),
+ AnonymitySet = Global.StateMachine.AnonymitySet,
+ TimeSpentInInputRegistrationInSeconds = (int)Global.StateMachine.TimeSpentInInputRegistration.TotalSeconds
});
}
catch (Exception ex)

MODIFY
HiddenWallet.ChaumianTumbler/HiddenWallet.ChaumianTumbler.csproj
HiddenWallet.ChaumianTumbler/HiddenWallet.ChaumianTumbler.csproj
</ItemGroup>
<ItemGroup>
+ <Folder Include="Denomination\" />
<Folder Include="Views\Tumbler\" />
</ItemGroup>

MODIFY
HiddenWallet.ChaumianTumbler/Models/StatusResponse.cs
HiddenWallet.ChaumianTumbler/Models/StatusResponse.cs
@@ -12,6 +12,6 @@ namespace HiddenWallet.ChaumianTumbler.Models
public string Phase { get; set; }
public string Denomination { get; set; }
public int AnonymitySet { get; set; }
- public string TimeSpentInInputRegistrationLastTime { get; set; }
+ public int TimeSpentInInputRegistrationInSeconds { get; set; }
}
}

MODIFY
HiddenWallet.ChaumianTumbler/Program.cs
HiddenWallet.ChaumianTumbler/Program.cs
@@ -8,8 +8,8 @@ using Microsoft.AspNetCore.Hosting;
using Microsoft.Extensions.Configuration;
using Microsoft.Extensions.Logging;
using System.Threading;
-using HiddenWallet.ChaumianTumbler.Denomination;
using NBitcoin;
+using HiddenWallet.ChaumianTumbler.Configuration;
namespace HiddenWallet.ChaumianTumbler
{

Add anonimity set and finish status request