Undo redundant sanity check
MODIFY
WalletWasabi.Tests/UnitTests/AllFeeEstimateTests.cs
WalletWasabi.Tests/UnitTests/AllFeeEstimateTests.cs
@@ -247,7 +247,12 @@ namespace WalletWasabi.Tests.UnitTests
},
hasPeersInfo: true
);
- rpc.OnGetMempoolInfoAsync = async () => await Task.FromResult(new MemPoolInfo());
+ rpc.OnGetMempoolInfoAsync = async () => await Task.FromResult(
+ new MemPoolInfo()
+ {
+ Histogram = new FeeRateGroup[0]
+ }
+ );
// Do not throw exception
await rpc.EstimateAllFeeAsync(EstimateSmartFeeMode.Conservative);

MODIFY
WalletWasabi/Extensions/RPCClientExtensions.cs
WalletWasabi/Extensions/RPCClientExtensions.cs
@@ -77,8 +77,6 @@ namespace NBitcoin.RPC
var sanityFeeRate = mempoolInfo.GetSanityFeeRate();
var rpcStatus = await rpc.GetRpcStatusAsync(CancellationToken.None).ConfigureAwait(false);
- if (mempoolInfo.Histogram is { })
- {
var minEstimations = GetFeeEstimationsFromMempoolInfo(mempoolInfo);
var fixedEstimations = smartEstimations.GroupJoin(minEstimations,
@@ -95,12 +93,6 @@ namespace NBitcoin.RPC
rpcStatus.Synchronized);
}
- return new AllFeeEstimate(
- estimateMode,
- smartEstimations,
- rpcStatus.Synchronized);
- }
-
private static async Task<Dictionary<int, int>> GetFeeEstimationsAsync(IRPCClient rpc, EstimateSmartFeeMode estimateMode)
{
var batchClient = rpc.PrepareBatch();

Undo redundant sanity check