hacky solution for logging the right sender
MODIFY
WalletWasabi/Blockchain/Analysis/FeesEstimation/HybridFeeProvider.cs
WalletWasabi/Blockchain/Analysis/FeesEstimation/HybridFeeProvider.cs
@@ -77,7 +77,7 @@ namespace WalletWasabi.Blockchain.Analysis.FeesEstimation
// If it wasn't set before, then set it regardless everything.
notify = SetAllFeeEstimate(fees);
}
- else if (sender is ThirdPartyFeeProvider)
+ else if (sender is IThirdPartyFeeProvider)
{
var rpcProvider = RpcFeeProvider;
if (rpcProvider is null)

ADD
WalletWasabi/Blockchain/Analysis/FeesEstimation/IThirdPartyFeeProvider.cs
+using System;
+using System.Collections.Generic;
+using System.Linq;
+using System.Text;
+using System.Threading.Tasks;
+
+namespace WalletWasabi.Blockchain.Analysis.FeesEstimation
+{
+ public interface IThirdPartyFeeProvider
+ {
+ }
+}

MODIFY
WalletWasabi/Blockchain/Analysis/FeesEstimation/ThirdPartyFeeProvider.cs
WalletWasabi/Blockchain/Analysis/FeesEstimation/ThirdPartyFeeProvider.cs
@@ -14,7 +14,7 @@ using WalletWasabi.WebClients.BlockstreamInfo;
namespace WalletWasabi.Blockchain.Analysis.FeesEstimation
{
- public class ThirdPartyFeeProvider : PeriodicRunner
+ public class ThirdPartyFeeProvider : PeriodicRunner, IThirdPartyFeeProvider
{
public ThirdPartyFeeProvider(TimeSpan period, WasabiSynchronizer synchronizer, BlockstreamInfoFeeProvider blockstreamProvider)
: base(period)
@@ -75,7 +75,7 @@ namespace WalletWasabi.Blockchain.Analysis.FeesEstimation
if (notify)
{
- AllFeeEstimateArrived?.Invoke(this, fees);
+ AllFeeEstimateArrived?.Invoke(sender, fees);
}
}
}

MODIFY
WalletWasabi/Services/WasabiSynchronizer.cs
WalletWasabi/Services/WasabiSynchronizer.cs
@@ -18,7 +18,7 @@ using WalletWasabi.WebClients.Wasabi;
namespace WalletWasabi.Services
{
- public class WasabiSynchronizer : NotifyPropertyChangedBase
+ public class WasabiSynchronizer : NotifyPropertyChangedBase, IThirdPartyFeeProvider
{
private const long StateNotStarted = 0;

MODIFY
WalletWasabi/WebClients/BlockstreamInfo/BlockstreamInfoFeeProvider.cs
WalletWasabi/WebClients/BlockstreamInfo/BlockstreamInfoFeeProvider.cs
@@ -7,7 +7,7 @@ using WalletWasabi.Blockchain.Analysis.FeesEstimation;
namespace WalletWasabi.WebClients.BlockstreamInfo
{
- public class BlockstreamInfoFeeProvider : PeriodicRunner
+ public class BlockstreamInfoFeeProvider : PeriodicRunner, IThirdPartyFeeProvider
{
public BlockstreamInfoFeeProvider(TimeSpan period, BlockstreamInfoClient blockstreamInfoClient) : base(period)
{

hacky solution for logging the right sender