Prefer correctness
MODIFY
WalletWasabi/Blockchain/Analysis/BlockchainAnalyzer.cs
WalletWasabi/Blockchain/Analysis/BlockchainAnalyzer.cs
@@ -38,7 +38,7 @@ public class BlockchainAnalyzer
{
AnalyzeWalletInputs(tx, out HashSet<HdPubKey> distinctWalletInputPubKeys, out int newInputAnonset);
- if (!tx.IsLikelyCoinjoin())
+ if (inputCount == ownInputCount)
{
AnalyzeSelfSpend(tx, newInputAnonset);
}

MODIFY
WalletWasabi/Extensions/NBitcoinExtensions.cs
WalletWasabi/Extensions/NBitcoinExtensions.cs
@@ -151,8 +151,7 @@ public static class NBitcoinExtensions
}
public static bool IsLikelyCoinjoin(this SmartTransaction me)
- => me.Transaction.Inputs.Count > 1 // The tx must have more than one input in order to be a coinjoin.
- && me.Transaction.Inputs.Count != me.WalletInputs.Count
+ => me.Transaction.Inputs.Count != me.WalletInputs.Count // Some inputs must not be ours for it to be a coinjoin.
&& me.Transaction.HasIndistinguishableOutputs(); // The tx must have more than one equal output in order to be a coinjoin.
/// <summary>

Prefer correctness