Move TakeUntil to LinqExtensions.cs
MODIFY
WalletWasabi/Extensions/LinqExtensions.cs
WalletWasabi/Extensions/LinqExtensions.cs
@@ -230,4 +230,16 @@ public static class LinqExtensions
}
return inputSum;
}
+
+ public static IEnumerable<T> TakeUntil<T>(this IEnumerable<T> list, Func<T, bool> predicate)
+ {
+ foreach (T el in list)
+ {
+ yield return el;
+ if (predicate(el))
+ {
+ yield break;
+ }
+ }
+ }
}

MODIFY
WalletWasabi/WabiSabi/Client/Decomposer.cs
WalletWasabi/WabiSabi/Client/Decomposer.cs
using System.Collections.Generic;
using System.Linq;
+using WalletWasabi.Extensions;
namespace WalletWasabi.WabiSabi.Client;

Move TakeUntil to LinqExtensions.cs