Simplify just a bit the MultiClient
By using the `TestWallet` class.
MODIFY
WalletWasabi.Tests/UnitTests/WabiSabi/Integration/WabiSabiHttpApiIntegrationTests.cs
WalletWasabi.Tests/UnitTests/WabiSabi/Integration/WabiSabiHttpApiIntegrationTests.cs
@@ -356,20 +356,20 @@ public class WabiSabiHttpApiIntegrationTests : IClassFixture<WabiSabiApiApplicat
var participants = Enumerable
.Range(0, NumberOfParticipants)
- .Select(_ => new Participant(rpc, mockHttpClientFactory.Object))
+ .Select(i => new Participant($"participant{i}", rpc, mockHttpClientFactory.Object))
.ToArray();
foreach (var participant in participants)
{
await participant.GenerateSourceCoinAsync(cts.Token);
}
- using var dummyKey = new Key();
- await rpc.GenerateToAddressAsync(101, dummyKey.PubKey.GetAddress(ScriptPubKeyType.Segwit, rpc.Network));
+ var dummyWallet = new TestWallet("dummy", rpc);
+ await dummyWallet.GenerateAsync(101, cts.Token);
foreach (var participant in participants)
{
await participant.GenerateCoinsAsync(NumberOfCoinsPerParticipant, seed, cts.Token);
}
- await rpc.GenerateToAddressAsync(101, dummyKey.PubKey.GetAddress(ScriptPubKeyType.Segwit, rpc.Network));
+ await dummyWallet.GenerateAsync(101, cts.Token);
var tasks = participants.Select(x => x.StartParticipatingAsync(cts.Token)).ToArray();

Simplify just a bit the MultiClient

By using the `TestWallet` class.