Start history backend
MODIFY
WalletWasabi.Gui/Controls/WalletExplorer/ReceiveTabViewModel.cs
WalletWasabi.Gui/Controls/WalletExplorer/ReceiveTabViewModel.cs
@@ -25,6 +25,8 @@ namespace WalletWasabi.Gui.Controls.WalletExplorer
{
_addresses = new ObservableCollection<AddressViewModel>();
+ Global.WalletService.Coins.CollectionChanged += Coins_CollectionChanged;
+
InitializeAddresses();
GenerateCommand = ReactiveCommand.Create(() =>
@@ -63,6 +65,11 @@ namespace WalletWasabi.Gui.Controls.WalletExplorer
});
}
+ private void Coins_CollectionChanged(object sender, System.Collections.Specialized.NotifyCollectionChangedEventArgs e)
+ {
+ Dispatcher.UIThread.InvokeAsync(() => InitializeAddresses());
+ }
+
private void InitializeAddresses()
{
_addresses?.Clear();

MODIFY
WalletWasabi/Services/WalletService.cs
WalletWasabi/Services/WalletService.cs
@@ -46,6 +46,8 @@ namespace WalletWasabi.Services
public event EventHandler<FilterModel> NewFilterProcessed;
+ public event EventHandler<Block> NewBlockProcessed;
+
/// <summary>
/// 0: Not started, 1: Running, 2: Stopping, 3: Stopped
/// </summary>
@@ -261,6 +263,8 @@ namespace WalletWasabi.Services
}
ProcessedBlocks.Add(block.GetHash());
+
+ NewBlockProcessed?.Invoke(this, block);
}
private void ProcessTransaction(SmartTransaction tx, List<HdPubKey> keys = null)

Start history backend