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
Use different AliceClients for every coin #7608
Conversation
try | ||
{ | ||
personCircuit = HttpClientFactory.NewHttpClientWithPersonCircuit(out Tor.Http.IHttpClient httpClient); |
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.
Holy sh**
wow could it be? is it exactly the thing i warned about repeatedly? what a farce this project is. |
@@ -141,25 +141,28 @@ public async Task<CoinJoinResult> StartRoundAsync(IEnumerable<SmartCoin> smartCo | |||
{ | |||
var roundId = roundState.Id; | |||
|
|||
ImmutableArray<AliceClient> registeredAliceClients = ImmutableArray<AliceClient>.Empty; | |||
ImmutableArray<(AliceClient AliceClient, PersonCircuit PersonCircuit)> registeredAliceClientAndCircuits = ImmutableArray<(AliceClient, PersonCircuit)>.Empty; |
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.
The noise/signal ratio of this line is close to infinite.
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.
I was thinking of adding PersonCircuit to AliceClient but it won't be wise because of the abstractions. So the cleanest cut is to handle them outside.
This was exactly the right time to fix this. |
(1) The most important change in this PR is the line: The circuit was disposed of right after the connection confirmation. (2) The second change was to use separate Tor identities for every coin. |
Fixes: