Remove toleratefailure
MODIFY
WalletWasabi.Gui/Global.cs
WalletWasabi.Gui/Global.cs
@@ -247,7 +247,7 @@ namespace WalletWasabi.Gui
RpcMonitor.RpcClient = BitcoinCoreNode.RpcClient;
RpcMonitor.Start();
- RpcFeeProvider = new RpcFeeProvider(TimeSpan.FromMinutes(1), BitcoinCoreNode.RpcClient, tolerateFailure: false);
+ RpcFeeProvider = new RpcFeeProvider(TimeSpan.FromMinutes(1), BitcoinCoreNode.RpcClient);
RpcFeeProvider.Start();
feeProviderList.Add(RpcFeeProvider);
}

MODIFY
WalletWasabi/BitcoinCore/Monitoring/RpcFeeProvider.cs
WalletWasabi/BitcoinCore/Monitoring/RpcFeeProvider.cs
@@ -22,12 +22,10 @@ namespace WalletWasabi.BitcoinCore.Monitoring
}
public RPCClient RpcClient { get; set; }
- public bool TolerateFailure { get; }
- public RpcFeeProvider(TimeSpan period, RPCClient rpcClient, bool tolerateFailure) : base(period, null)
+ public RpcFeeProvider(TimeSpan period, RPCClient rpcClient) : base(period, null)
{
RpcClient = Guard.NotNull(nameof(rpcClient), rpcClient);
- TolerateFailure = tolerateFailure;
}
public override async Task<object> ActionAsync(CancellationToken cancel)
@@ -41,18 +39,8 @@ namespace WalletWasabi.BitcoinCore.Monitoring
}
catch
{
- if (TolerateFailure)
- {
- // Will be caught by the periodic runner.
- // The point is that the result isn't changing to null, so it can still serve the latest fee it knew about.
- throw;
- }
- else
- {
- // Sometimes we want to report failure so our secondary mechanisms can take over its place.
AllFeeEstimate = null;
- return null;
- }
+ throw;
}
}
}

Remove toleratefailure