Final version previous review
MODIFY
WalletWasabi.Tests/IntegrationTests/LiveServerTests.cs
WalletWasabi.Tests/IntegrationTests/LiveServerTests.cs
@@ -80,6 +80,12 @@ namespace WalletWasabi.Tests.IntegrationTests
var ex = await Assert.ThrowsAsync<HttpRequestException>(async ()=>
await client.GetTransactionsAsync(network, randomTxIds.Take(4), CancellationToken.None));
Assert.Equal("Bad Request\nNo such mempool or blockchain transaction. Use gettransaction for wallet transactions.", ex.Message);
+
+ var mempoolTxIds = await client.GetMempoolHashesAsync(CancellationToken.None);
+ randomTxIds = Enumerable.Range(0, 5).Select(_ => mempoolTxIds.RandomElement()).ToArray();
+ var txs = await client.GetTransactionsAsync(network, randomTxIds, CancellationToken.None);
+ var returnedTxIds = txs.Select(tx => tx.GetHash());
+ Assert.Equal(returnedTxIds, randomTxIds);
}
#endregion Blockchain

MODIFY
WalletWasabi.Tests/UnitTests/Clients/WasabiClientTests.cs
WalletWasabi.Tests/UnitTests/Clients/WasabiClientTests.cs
@@ -22,6 +22,7 @@ namespace WalletWasabi.Tests.UnitTests.Filters
Task<HttpResponseMessage> FakeServerCode(HttpMethod method, string action, string[] parameters)
{
+ Assert.True(parameters.Length <= 10);
var requestedTxId = parameters.Select(p => uint256.Parse(p[(p.IndexOf('=')+1)..]));
var result = mempool.Where(tx => requestedTxId.Contains(tx.GetHash())).Select(tx=> tx.ToHex());

Final version previous review