Remove throttle on anonscore as it is not needed anymore
MODIFY
WalletWasabi.Fluent/Models/UiTriggers.cs
WalletWasabi.Fluent/Models/UiTriggers.cs
@@ -35,12 +35,7 @@ public class UiTriggers
/// <summary>
/// Triggers on subscription and when the anon score target changed.
/// </summary>
- public IObservable<Unit> AnonScoreTargetChanged => _walletViewModel.CoinJoinSettings.WhenAnyValue(x => x.AnonScoreTarget)
- .ToSignal()
- .Throttle(TimeSpan.FromMilliseconds(1000) + _throttleTime)
- .Skip(1)
- .StartWith(Unit.Default)
- .ObserveOn(RxApp.MainThreadScheduler);
+ public IObservable<Unit> AnonScoreTargetChanged => _walletViewModel.CoinJoinSettings.WhenAnyValue(x => x.AnonScoreTarget).ToSignal().ObserveOn(RxApp.MainThreadScheduler);
/// <summary>
/// Triggers on subscription and when a transaction is processed to the wallet or the USD exchange rate changed.

MODIFY
WalletWasabi.Fluent/ViewModels/Wallets/CoinJoinSettingsViewModel.cs
WalletWasabi.Fluent/ViewModels/Wallets/CoinJoinSettingsViewModel.cs
@@ -26,6 +26,7 @@ public partial class CoinJoinSettingsViewModel : RoutableViewModel
_wallet = walletViewModelBase.Wallet;
_autoCoinJoin = _wallet.KeyManager.AutoCoinJoin;
_plebStopThreshold = _wallet.KeyManager.PlebStopThreshold?.ToString() ?? KeyManager.DefaultPlebStopThreshold.ToString();
+ _anonScoreTarget = _wallet.AnonScoreTarget;
SetupCancel(enableCancel: false, enableCancelOnEscape: true, enableCancelOnPressed: true);
@@ -58,14 +59,6 @@ public partial class CoinJoinSettingsViewModel : RoutableViewModel
SelectCoinjoinProfileCommand = ReactiveCommand.CreateFromTask(SelectCoinjoinProfileAsync);
- _anonScoreTarget = _wallet.AnonScoreTarget;
-
- this.WhenAnyValue(x => x.AnonScoreTarget)
- .ObserveOn(RxApp.TaskpoolScheduler)
- .Throttle(TimeSpan.FromMilliseconds(1000))
- .Skip(1)
- .Subscribe(_ => _wallet.KeyManager.SetAnonScoreTarget(AnonScoreTarget));
-
this.WhenAnyValue(x => x.PlebStopThreshold)
.Skip(1)
.Throttle(TimeSpan.FromMilliseconds(1000))

Remove throttle on anonscore as it is not needed anymore