Skip to content
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

[v2.0.7.2] Mix to another wallet clean #12997

Merged

Conversation

Whem
Copy link
Collaborator

@Whem Whem commented May 8, 2024

fixes: #12695

@Whem Whem requested a review from molnard May 8, 2024 10:29
@molnard molnard changed the base branch from master to release_v2.0.7 May 8, 2024 10:34
@molnard molnard changed the title Mix to another wallet clean [v2.0.7.2] Mix to another wallet clean May 8, 2024
Copy link
Collaborator

@molnard molnard left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

tACK

@molnard
Copy link
Collaborator

molnard commented May 8, 2024

I will merge this now to be able to create the RC - please still review it. It is moving the user's money.
Pinging @lontivero @turbolay @soosr

@molnard molnard merged commit 7f7228c into WalletWasabi:release_v2.0.7 May 8, 2024
4 of 5 checks passed
Copy link
Collaborator

@turbolay turbolay left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@@ -39,11 +39,13 @@ public async Task<CoinJoinTracker> CreateAndStartAsync(IWallet wallet, IWallet o
throw new NotSupportedException("Wallet has no key chain.");
}

wallet.ConsolidationMode = outputWallet is not null && outputWallet.WalletId != wallet.WalletId;
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
wallet.ConsolidationMode = outputWallet is not null && outputWallet.WalletId != wallet.WalletId;
wallet.ConsolidationMode = wallet.ConsolidationMode || (outputWallet is not null && outputWallet.WalletId != wallet.WalletId);

?

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Seems to be not correct to me. Once we set the ConsolidationMode to true it won't be able to change it back. Even if the user sets it back and mixes into his own wallet.

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ok so maybe another change, but right now you basically "hijack" ConsolidationMode with this feature, as it's getting overriden, so we cannot set this settings in any other way that through mixing to other wallet.

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That is a correct point theoretically. Practically there is no other usage of ConsolidationMode currently. If you know an easy way to change this we can do it that way on the master. Is it OK to have it this way in the hotfix for the sake of simplicity?

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes

@turbolay turbolay mentioned this pull request May 8, 2024
@turbolay
Copy link
Collaborator

turbolay commented May 8, 2024

From initial testing:

  • Between the CoinjoinClient is started but before inputs registration phase, you can still change the output wallet. It is incorrect because the change won't be taken into account. This is an important problem because everything in the UI tells that Wallet B will receive the outputs when in fact it's Wallet A
    CleanShot 2024-05-08 at 10 43 39@2x
  • Same if you have the dropdown opened while transitioning into the input reg phase. You will still be able to change the selected wallet for outputs, even if this won't be taken into account. This is much less of a deal if the previous issue is fixed, because it will only be possible for it to happen when auto coinjoin starts.
CleanShot.2024-05-08.at.11.10.45.mp4
  • Under some conditions that I have not been able to identify, some opened and loaded wallets are not selectable. This happened to me twice
    CleanShot 2024-05-08 at 11 05 25@2x

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Mix to Other Wallet
4 participants