Only change to blockstream fee after 1m
MODIFY
WalletWasabi/Blockchain/Analysis/FeesEstimation/ThirdPartyFeeProvider.cs
WalletWasabi/Blockchain/Analysis/FeesEstimation/ThirdPartyFeeProvider.cs
@@ -100,7 +100,7 @@ namespace WalletWasabi.Blockchain.Analysis.FeesEstimation
protected override Task ActionAsync(CancellationToken cancel)
{
- if (Synchronizer.InError)
+ if (Synchronizer.InError && Synchronizer.BackendStatusChangedSince > TimeSpan.FromMinutes(1))
{
BlockstreamProvider.IsPaused = false;
InError = BlockstreamProvider.InError;

MODIFY
WalletWasabi/Services/WasabiSynchronizer.cs
WalletWasabi/Services/WasabiSynchronizer.cs
@@ -86,8 +86,17 @@ namespace WalletWasabi.Services
public BackendStatus BackendStatus
{
get => _backendStatus;
- private set => RaiseAndSetIfChanged(ref _backendStatus, value);
+ private set
+ {
+ if (RaiseAndSetIfChanged(ref _backendStatus, value))
+ {
+ BackendStatusChangedAt = DateTimeOffset.UtcNow;
+ }
}
+ }
+
+ private DateTimeOffset BackendStatusChangedAt { get; set; } = DateTimeOffset.UtcNow;
+ public TimeSpan BackendStatusChangedSince => DateTimeOffset.UtcNow - BackendStatusChangedAt;
public TimeSpan MaxRequestIntervalForMixing { get; set; }

Only change to blockstream fee after 1m