start integrating PostRequestHandler
MODIFY
WalletWasabi/WabiSabi/Backend/PostRequests/PostRequestHandler.cs
WalletWasabi/WabiSabi/Backend/PostRequests/PostRequestHandler.cs
@@ -4,12 +4,22 @@ using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
+using WalletWasabi.WabiSabi.Backend.Banning;
using WalletWasabi.WabiSabi.Models;
namespace WalletWasabi.WabiSabi.Backend.PostRequests
{
public class PostRequestHandler
{
+ public PostRequestHandler(WabiSabiConfig config, Prison prison)
+ {
+ Config = config;
+ Prison = prison;
+ }
+
+ public WabiSabiConfig Config { get; }
+ public Prison Prison { get; }
+
public InputsRegistrationResponse RegisterInput(InputsRegistrationRequest request)
{
throw new NotImplementedException();

MODIFY
WalletWasabi/WabiSabi/WabiSabiCoordinator.cs
WalletWasabi/WabiSabi/WabiSabiCoordinator.cs
@@ -10,6 +10,7 @@ using WalletWasabi.Logging;
using WalletWasabi.Services;
using WalletWasabi.WabiSabi.Backend;
using WalletWasabi.WabiSabi.Backend.Banning;
+using WalletWasabi.WabiSabi.Backend.PostRequests;
namespace WalletWasabi.WabiSabi
{
@@ -21,12 +22,16 @@ namespace WalletWasabi.WabiSabi
Warden = new(parameters.UtxoWardenPeriod, parameters.PrisonFilePath, Config);
ConfigWatcher = new(parameters.ConfigChangeMonitoringPeriod, Config, () => Logger.LogInfo("WabiSabi configuration has changed."));
+
+ Postman = new(Config, Prison);
}
public ConfigWatcher ConfigWatcher { get; }
public Warden Warden { get; }
public CoordinatorParameters Parameters { get; }
+ public PostRequestHandler Postman { get; }
+
public string WorkDir => Parameters.CoordinatorDataDir;
public Prison Prison => Warden.Prison;
public WabiSabiConfig Config => Parameters.RuntimeCoordinatorConfig;

start integrating PostRequestHandler