do not show the labels of a private coin
ADD
WalletWasabi.Fluent/Helpers/CoinHelpers.cs
+using WalletWasabi.Blockchain.Analysis.Clustering;
+using WalletWasabi.Blockchain.TransactionOutputs;
+
+namespace WalletWasabi.Fluent.Helpers
+{
+ public static class CoinHelpers
+ {
+ public static bool IsPrivate(this SmartCoin coin)
+ {
+ var privateThreshold = Services.Config.MixUntilAnonymitySetValue;
+ return coin.HdPubKey.AnonymitySet >= privateThreshold;
+ }
+
+ public static SmartLabel GetLabels(this SmartCoin coin) => coin.IsPrivate() ? SmartLabel.Empty : coin.HdPubKey.Cluster.Labels;
+ }
+}

MODIFY
WalletWasabi.Fluent/ViewModels/Wallets/Send/TransactionInfo.cs
WalletWasabi.Fluent/ViewModels/Wallets/Send/TransactionInfo.cs
@@ -4,6 +4,7 @@ using System.Linq;
using NBitcoin;
using WalletWasabi.Blockchain.Analysis.Clustering;
using WalletWasabi.Blockchain.TransactionOutputs;
+using WalletWasabi.Fluent.Helpers;
using WalletWasabi.WebClients.PayJoin;
namespace WalletWasabi.Fluent.ViewModels.Wallets.Send
@@ -12,7 +13,7 @@ namespace WalletWasabi.Fluent.ViewModels.Wallets.Send
{
public SmartLabel UserLabels { private get; set; }
- public SmartLabel Labels => SmartLabel.Merge(UserLabels, SmartLabel.Merge(Coins?.Select(x => x.HdPubKey.Cluster.Labels)));
+ public SmartLabel Labels => SmartLabel.Merge(UserLabels, SmartLabel.Merge(Coins.Select(coin => coin.GetLabels())));
public BitcoinAddress Address { get; set; }
@@ -22,7 +23,7 @@ namespace WalletWasabi.Fluent.ViewModels.Wallets.Send
public TimeSpan ConfirmationTimeSpan { get; set; }
- public IEnumerable<SmartCoin> Coins { get; set; }
+ public IEnumerable<SmartCoin> Coins { get; set; } = Enumerable.Empty<SmartCoin>();
public IPayjoinClient? PayJoinClient { get; set; }
}

do not show the labels of a private coin