-
Notifications
You must be signed in to change notification settings - Fork 490
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Organize (move) client side CJ related code #12671
Changes from 2 commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,7 +2,7 @@ | |
using System.Diagnostics.CodeAnalysis; | ||
using WalletWasabi.Extensions; | ||
|
||
namespace WalletWasabi.WabiSabi.Client; | ||
namespace WalletWasabi.WabiSabi.Client.CoinJoin.Client.Decomp; | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. My bad why this was not changed... There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Nevermind GitHub displayed it wrong. |
||
|
||
public record Output | ||
{ | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -11,15 +11,15 @@ | |
using WalletWasabi.WabiSabi.Backend.Models; | ||
using WalletWasabi.WabiSabi.Client.CredentialDependencies; | ||
|
||
namespace WalletWasabi.WabiSabi.Client; | ||
namespace WalletWasabi.WabiSabi.Client.CoinJoin.Client; | ||
|
||
public class DependencyGraphTaskScheduler | ||
{ | ||
public DependencyGraphTaskScheduler(DependencyGraph graph) | ||
{ | ||
Graph = graph; | ||
var allInEdges = Enum.GetValues<CredentialType>() | ||
.SelectMany(type => Enumerable.Concat<RequestNode>(Graph.Reissuances, Graph.Outputs) | ||
.SelectMany(type => Graph.Reissuances.Concat<RequestNode>(Graph.Outputs) | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This was done automatically. |
||
.SelectMany(node => Graph.EdgeSets[type].InEdges(node))); | ||
DependencyTasks = allInEdges.ToDictionary(edge => edge, _ => new TaskCompletionSource<Credential>(TaskCreationOptions.RunContinuationsAsynchronously)); | ||
} | ||
|
@@ -205,6 +205,6 @@ private IEnumerable<(AliceClient AliceClient, InputNode Node)> PairAliceClientAn | |
throw new InvalidOperationException("Graph vs Alice inputs mismatch"); | ||
} | ||
|
||
return Enumerable.Zip(aliceClients, inputNodes); | ||
return aliceClients.Zip(inputNodes); | ||
} | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This was done automatically.