Removes all coins
MODIFY
WalletWasabi/Services/WalletService.cs
WalletWasabi/Services/WalletService.cs
@@ -188,7 +188,8 @@ namespace WalletWasabi.Services
{
if (e.Action == NotifyCollectionChangedAction.Remove)
{
- var toRemove = e.OldItems[0] as SmartCoin;
+ foreach(var toRemove in e.OldItems.Cast<SmartCoin>())
+ {
if (toRemove.SpenderTransactionId != null)
{
foreach (var toAlsoRemove in Coins.Where(x => x.TransactionId == toRemove.SpenderTransactionId).Distinct().ToList())
@@ -204,6 +205,7 @@ namespace WalletWasabi.Services
TransactionCache.TryRemove(txToRemove);
}
}
+ }
RefreshCoinHistories();
}

Removes all coins