Change CredentialPool order
MODIFY
WalletWasabi.Tests/UnitTests/WabiSabi/Client/AliceClientTests.cs
WalletWasabi.Tests/UnitTests/WabiSabi/Client/AliceClientTests.cs
@@ -48,7 +48,7 @@ namespace WalletWasabi.Tests.UnitTests.WabiSabi.Client
CredentialPool amountCredentialPool = new();
CredentialPool weightCredentialPool = new();
- var arenaClient = new ArenaClient(amountCredentialPool, weightCredentialPool, round.AmountCredentialIssuerParameters, round.WeightCredentialIssuerParameters, coordinator, new InsecureRandom());
+ var arenaClient = new ArenaClient(round.AmountCredentialIssuerParameters, round.WeightCredentialIssuerParameters, amountCredentialPool, weightCredentialPool, coordinator, new InsecureRandom());
Assert.Equal(Phase.InputRegistration, arena.Rounds.First().Value.Phase);
var bitcoinSecret = km.GetSecrets("", coin1.ScriptPubKey).Single().PrivateKey.GetBitcoinSecret(Network.Main);

MODIFY
WalletWasabi.Tests/UnitTests/WabiSabi/Client/ArenaClientTests.cs
WalletWasabi.Tests/UnitTests/WabiSabi/Client/ArenaClientTests.cs
@@ -44,7 +44,7 @@ namespace WalletWasabi.Tests.UnitTests.WabiSabi.Client
CredentialPool amountCredentials = new();
CredentialPool weightCredentials = new();
- var aliceArenaClient = new ArenaClient(amountCredentials, weightCredentials, round.AmountCredentialIssuerParameters, round.WeightCredentialIssuerParameters, coordinator, new InsecureRandom());
+ var aliceArenaClient = new ArenaClient(round.AmountCredentialIssuerParameters, round.WeightCredentialIssuerParameters, amountCredentials, weightCredentials, coordinator, new InsecureRandom());
var aliceId = await aliceArenaClient.RegisterInputAsync(Money.Coins(1m), outpoint, key, round.Id, round.Hash);
@@ -89,7 +89,7 @@ namespace WalletWasabi.Tests.UnitTests.WabiSabi.Client
await arena.TriggerAndWaitRoundAsync(TimeSpan.FromSeconds(1));
Assert.Equal(Phase.OutputRegistration, round.Phase);
- var bobArenaClient = new ArenaClient(amountCredentials, weightCredentials, round.AmountCredentialIssuerParameters, round.WeightCredentialIssuerParameters, coordinator, new InsecureRandom());
+ var bobArenaClient = new ArenaClient(round.AmountCredentialIssuerParameters, round.WeightCredentialIssuerParameters, amountCredentials, weightCredentials, coordinator, new InsecureRandom());
// Phase: Output Registration
using var destinationKey1 = new Key();
using var destinationKey2 = new Key();

MODIFY
WalletWasabi/WabiSabi/Client/ArenaClient.cs
WalletWasabi/WabiSabi/Client/ArenaClient.cs
@@ -21,10 +21,10 @@ namespace WalletWasabi.WabiSabi.Client
public static readonly ulong ProtocolMaxWeightPerAlice = 1_000ul;
public ArenaClient(
- CredentialPool amountCredentialPool,
- CredentialPool weightCredentialPool,
CredentialIssuerParameters amountCredentialIssuerParameters,
CredentialIssuerParameters weightCredentialIssuerParameters,
+ CredentialPool amountCredentialPool,
+ CredentialPool weightCredentialPool,
IArenaRequestHandler requestHandler,
WasabiRandom random)
{

Change CredentialPool order