Proper triggering of Confirmations
MODIFY
WalletWasabi.Gui/Controls/WalletExplorer/CoinViewModel.cs
WalletWasabi.Gui/Controls/WalletExplorer/CoinViewModel.cs
@@ -94,7 +94,8 @@ namespace WalletWasabi.Gui.Controls.WalletExplorer
.Subscribe(_ => RefreshSmartCoinStatus())
.DisposeWith(Disposables);
- Global.BitcoinStore.HashChain.WhenAnyValue(x => x.ServerTipHeight)
+ Global.BitcoinStore.HashChain.WhenAnyValue(x => x.TipHeight).Select(x => new Height(x))
+ .Merge(Model.WhenAnyValue(x => x.Height))
.ObserveOn(RxApp.MainThreadScheduler)
.Subscribe(_ => this.RaisePropertyChanged(nameof(Confirmations)))
.DisposeWith(Disposables);

MODIFY
WalletWasabi/Blockchain/TransactionOutputs/SmartCoin.cs
WalletWasabi/Blockchain/TransactionOutputs/SmartCoin.cs
@@ -75,10 +75,8 @@ namespace WalletWasabi.Blockchain.TransactionOutputs
get => _height;
set
{
- if (value != _height)
+ if (RaiseAndSetIfChanged(ref _height, value))
{
- _height = value;
- OnPropertyChanged(nameof(Height));
SetConfirmed();
}
}

Proper triggering of Confirmations