Add `IsSuperSetOf` extension method for `IEnumerable<T>`
This will be used for testing inclusion in the CoinJoinClient`'s
sanity check because the coinjoin transaction outputs set must be
a super set of our registered outputs. In other words, all our
outputs has to be included in the coinjoin transaction.
MODIFY
WalletWasabi/Extensions/LinqExtensions.cs
WalletWasabi/Extensions/LinqExtensions.cs
@@ -206,5 +206,8 @@ namespace System.Linq
yield return previous;
}
}
+
+ public static bool IsSuperSetOf<T>(this IEnumerable<T> me, IEnumerable<T> other) =>
+ me.All(x => other.Contains(x));
}
}

Add `IsSuperSetOf` extension method for `IEnumerable<T>`

This will be used for testing inclusion in the CoinJoinClient`'s
sanity check because the coinjoin transaction outputs set must be
a super set of our registered outputs. In other words, all our
outputs has to be included in the coinjoin transaction.