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

refactor: PrivateSend -> CoinJoin + Move the tab #4038

Merged
merged 24 commits into from
Mar 17, 2021

Conversation

xdustinface
Copy link

@xdustinface xdustinface commented Mar 10, 2021

As decided by DCG this PR renames PrivateSend to CoinJoin in the entire codebase and moves its tab to the right next to Transactions.

@xdustinface xdustinface added this to the 17 milestone Mar 10, 2021
Co-authored-by: thephez <thephez@users.noreply.github.com>
UdjinM6
UdjinM6 previously approved these changes Mar 10, 2021
Copy link

@UdjinM6 UdjinM6 left a comment

Choose a reason for hiding this comment

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

LGTM, utACK

@UdjinM6 UdjinM6 requested a review from PastaPastaPasta March 10, 2021 23:47
@xdustinface xdustinface changed the title qt|wallet|privatesend: PrivateSend -> CoinJoin in GUI + Move the tab refactor: PrivateSend -> CoinJoin + Move the tab Mar 11, 2021
@xdustinface
Copy link
Author

Pushed some more commits to rename the entire codebase.

Copy link

@UdjinM6 UdjinM6 left a comment

Choose a reason for hiding this comment

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

Pls see UdjinM6@bac67e9 and 2 suggestions below

@xdustinface
Copy link
Author

Pls see UdjinM6@bac67e9 and 2 suggestions below

Picked and addressed the suggestions!

@UdjinM6
Copy link

UdjinM6 commented Mar 11, 2021

Found a couple more: 4dc95e2 and a9515e3

@xdustinface
Copy link
Author

Found a couple more: 4dc95e2 and a9515e3

Good catch 👍 There is also ps_salt but it might confuse users if they suddenly have other fully mixed amounts so if we rename it maybe like:
reads: cj_salt first, then tries ps_salt
writes: cj_salt

thoughts?

@UdjinM6
Copy link

UdjinM6 commented Mar 11, 2021

There is also ps_salt but it might confuse users if they suddenly have other fully mixed amounts so if we rename it

Hmmm, good point... and nCoinJoinRounds can cause similar confusion too for users who had nPrivateSendRounds higher than default 🤔

@xdustinface
Copy link
Author

and nCoinJoinRounds can cause similar confusion too for users who had nPrivateSendRounds higher than default 🤔

Also a good point 😄 See the last three commits, note that c92bf89 also drops legacy checks for nAnonymizeDashAmount.

@UdjinM6
Copy link

UdjinM6 commented Mar 11, 2021

Pls see c3110f1 as an alternative to b3df6df. And c92bf89 is not that critical really (doesn't affect the balance), no need for that imo.

@xdustinface
Copy link
Author

Pls see c3110f1 as an alternative to b3df6df.

Jup thats better! But it has this e013f9c issue, no?

And c92bf89 is not that critical really (doesn't affect the balance), no need for that imo.

Dropped but still added 74bcb8b because this could lead to unexpected denominating because default is 1k DASH if i didn't get something wrong here? 🤔

@UdjinM6
Copy link

UdjinM6 commented Mar 11, 2021

Pls see c3110f1 as an alternative to b3df6df.

Jup thats better! But it has this e013f9c issue, no?

Right, my bad 🙈 👍

And c92bf89 is not that critical really (doesn't affect the balance), no need for that imo.

Dropped but still added 74bcb8b because this could lead to unexpected denominating because default is 1k DASH if i didn't get something wrong here? 🤔

You mean in case it was set to a lower number? True, didn't think about. Ok, let's have this one too 👍

@UdjinM6
Copy link

UdjinM6 commented Mar 11, 2021

Pls see 30ec408.

Also, the more I play with it (going back to develop, saving some settings, going back) the more it feels awkward that we have some options/settings covered and some not :/ Let's maybe migrate all of them (e9b44f6) since we have the P-word in our code again anyway now? Probably not a big issue since it's only 2 specific places and for a good reason. Thoughts?

@xdustinface
Copy link
Author

xdustinface commented Mar 11, 2021

Pls see 30ec408.

Good catch! :)

Also, the more I play with it (going back to develop, saving some settings, going back) the more it feels awkward that we have some options/settings covered and some not :/ Let's maybe migrate all of them (e9b44f6) since we have the P-word in our code again anyway now? Probably not a big issue since it's only 2 specific places and for a good reason. Thoughts?

Well yeah, actually it just makes sense to migrate them all. IMO having the P-Word (lol for that) in there for migration shouldn't be any issue at all.. i mean, a class also has a P-Section and its still just to "remove the P-Word from older wallet databases/setting files" 😄

UdjinM6
UdjinM6 previously approved these changes Mar 11, 2021
Copy link

@UdjinM6 UdjinM6 left a comment

Choose a reason for hiding this comment

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

LGTM now 👍

Slightly tested ACK

@xdustinface xdustinface added the RPC Some notable changes to RPC params/behaviour/descriptions label Mar 12, 2021
Copy link

@UdjinM6 UdjinM6 left a comment

Choose a reason for hiding this comment

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

utACK

Copy link
Collaborator

@thephez thephez left a comment

Choose a reason for hiding this comment

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

utACK

Copy link
Member

@PastaPastaPasta PastaPastaPasta left a comment

Choose a reason for hiding this comment

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

utACK

@PastaPastaPasta PastaPastaPasta merged commit ae506ba into dashpay:develop Mar 17, 2021
gades pushed a commit to cosanta/cosanta-core that referenced this pull request Mar 12, 2022
* qt|wallet|privatesend: Rename PrivateSend to CoinJoin in GUI strings

* qt: Move CoinJoin next to Transactions

* qt: Adjust status tip of privateSendCoinsMenuAction

Co-authored-by: thephez <thephez@users.noreply.github.com>

* rename: privateSend -> coinJoin

* rename: privatesend -> coinjoin

* rename: PrivateSend -> CoinJoin

* rename: use_ps -> use_cj

* rename: PRIVATESEND -> COINJOIN

* rename: privatesend -> coinjoin for files and folders

* refactor: Re-order coinjoin files in cmake/make files

* refactor: Re-order coinjoin includes where it makes sense

* test: Update lint-circular-dependencies.sh

* Few cleanups

* test: test/coinjoin_tests.cpp -> wallet/test/coinjoin_test.cpp

* s/AdvancedPSUI/AdvancedCJUI/g

* s/privateSentAmountChanged/coinJoinAmountChanged/g

* wallet: Rename "ps_salt" backwards compatible

* Minimal PrivateSend -> CoinJoin migration for settings and cmd-line

* wallet: Fix privatesendrounds -> coinjoinrounds migration

* qt: Migrate nPrivateSendAmount -> nCoinJoinAmount

* `-coinjoindenoms` never existed

* Migrate all PS options/settings

* rpc: Formatting only

* qt: Make Send/CoinJoin tabs a bit more distinguishable

Co-authored-by: thephez <thephez@users.noreply.github.com>
Co-authored-by: UdjinM6 <UdjinM6@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
RPC Some notable changes to RPC params/behaviour/descriptions
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants