catch op cancelled exc if suggestions take too long
MODIFY
WalletWasabi.Fluent/ViewModels/Wallets/Send/PrivacySuggestionsFlyoutViewModel.cs
WalletWasabi.Fluent/ViewModels/Wallets/Send/PrivacySuggestionsFlyoutViewModel.cs
@@ -7,6 +7,7 @@ using ReactiveUI;
using WalletWasabi.Blockchain.Analysis.Clustering;
using WalletWasabi.Blockchain.TransactionBuilding;
using WalletWasabi.Fluent.Helpers;
+using WalletWasabi.Logging;
using WalletWasabi.Wallets;
namespace WalletWasabi.Fluent.ViewModels.Wallets.Send;
@@ -54,6 +55,8 @@ public partial class PrivacySuggestionsFlyoutViewModel : ViewModelBase
IsLoading = false;
if (hasChange)
+ {
+ try
{
var suggestions =
ChangeAvoidanceSuggestionViewModel.GenerateSuggestionsAsync(info, destination, wallet, transaction, cancellationToken);
@@ -62,8 +65,13 @@ public partial class PrivacySuggestionsFlyoutViewModel : ViewModelBase
{
Suggestions.Insert(Suggestions.Count - 1, suggestion);
}
+ }
+ catch (OperationCanceledException)
+ {
+ Logger.LogWarning("Suggestion creation has timed out.");
+ }
+ }
Suggestions.Remove(loadingRing);
}
}
-}

catch op cancelled exc if suggestions take too long