Fix parameter order and exception type
MODIFY
WalletWasabi.Tests/UnitTests/BitcoinCore/RpcBasedTests.cs
WalletWasabi.Tests/UnitTests/BitcoinCore/RpcBasedTests.cs
@@ -183,7 +183,7 @@ namespace WalletWasabi.Tests.UnitTests.BitcoinCore
{
var rpc = coreNode.RpcClient;
using CancellationTokenSource cts = new(TimeSpan.Zero);
- await Assert.ThrowsAsync<OperationCanceledException>(async () => await rpc.EstimateAllFeeAsync(EstimateSmartFeeMode.Conservative, true, cts.Token));
+ await Assert.ThrowsAsync<TaskCanceledException>(async () => await rpc.EstimateAllFeeAsync(EstimateSmartFeeMode.Conservative, true, cts.Token));
}
finally
{

MODIFY
WalletWasabi/BitcoinCore/Rpc/RpcClientBase.cs
WalletWasabi/BitcoinCore/Rpc/RpcClientBase.cs
@@ -65,7 +65,7 @@ namespace WalletWasabi.BitcoinCore.Rpc
{
try
{
- var response = await Rpc.SendCommandAsync(RPCOperations.getmempoolinfo, true, cancel).ConfigureAwait(false);
+ var response = await Rpc.SendCommandAsync(RPCOperations.getmempoolinfo, cancel, true).ConfigureAwait(false);
static IEnumerable<FeeRateGroup> ExtractFeeRateGroups(JToken jt) =>
jt switch
{

Fix parameter order and exception type