-
Notifications
You must be signed in to change notification settings - Fork 492
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
Build CCJ Tumbler #53
Comments
Can you check the logic around this line in TumblerController.InputsAsync: if (txOutResponse.Result.Value("confirmations") <= 0) It looks like the exception is only thrown if both conditions are met whereas it seems that it should throw if either one or both are met. |
In TumberController.Status: I think using: Version = "1" instead of Version = "v1" would be better as we can do > checks within the client easier. |
In TumblerController.CoinJoin we currently throw an exception if Alice has already asked for the CoinJoin transaction. Would it not be ok to let an Alice request this > once? What if their client quits during the process for some reason? We could make it possible to restart the client, reload the guid (assuming we have saved it locally) and rejoin the CoinJoin at the signing phase. ... just an idea. |
@wintercooled The logic is good, my comment was not clear. I modified the comment. // Check if inputs are unconfirmed, if so check if they are part of previous CoinJoin
if (txOutResponse.Result.Value<int>("confirmations") <= 0)
{
if (!Global.CoinJoinStore.Transactions
.Any(x => x.State == CoinJoinTransactionState.Succeeded && x.Transaction.GetHash() == op.Hash))
{
throw new ArgumentException("Provided input is not confirmed, nor spends a previous CJ transaction");
}
} |
Ok, I was thinking of this myself, too. Fixed. |
The reason is, because I don't want to get DoSd. If it becomes a problem we can do that, I'd keep it this way for now.
If it'd be needed that'd mean we failed. Signing phase should happen close to instantly. |
The text was updated successfully, but these errors were encountered: