Commit 9b51d22
committed
Merge #6870: refactor: allow wallet to select fresh change address to prevent address reuse in coinjoin createdenoms
efc689c Apply suggestions from code review (PastaPastaPasta)
cfae1e6 refactor: update CoinJoin change address handling to respect wallet's avoid_reuse setting (pasta)
4800e2f chore: run clang-format (pasta)
d4044d4 feat: introduce -coinjoinfreshchange option to enhance CoinJoin change address handling (pasta)
6ca08f6 docs: add release notes for CoinJoin change address improvement in wallet (pasta)
739d9f1 refactor: allow wallet to select fresh change address to prevent address reuse in coinjoin createdenoms (pasta)
Pull request description:
## Issue being fixed or feature implemented
Coinjoin CreateDenoms will currently intentionally re-use the input address for change; I see no reason to do this, and it can be non-ideal for certain instances such as if you receive on X and are tracking that address X for further receipts. Say every time you receive on X you send to Y as a part of an exchange or something.
The only time I can image where it's not ideal is if you receive to X multiple times, maybe you receive 1.9 and 0.1 (contrived) in this case, say your first create denoms makes 1.9 -> 1 and 0.9; because that 0.9 is kept in address X, the second 0.1 can be combined with the 0.9 to make another 1 Dash denom.
## What was done?
Use fresh change address instead of re-using
## How Has This Been Tested?
NOT TESTED (@kwvg please test and confirm functionality of createdenoms)
## Breaking Changes
## Checklist:
_Go over all the following points, and put an `x` in all the boxes that apply._
- [ ] I have performed a self-review of my own code
- [ ] I have commented my code, particularly in hard-to-understand areas
- [ ] I have added or updated relevant unit/integration/functional/e2e tests
- [ ] I have made corresponding changes to the documentation
- [x] I have assigned this pull request to a milestone _(for repository code-owners and collaborators only)_
ACKs for top commit:
UdjinM6:
utACK efc689c
Tree-SHA512: cd6e79b7a699253832181235da171501e153e26177e584d7bea62f7849133ad65bbc439b99664b90b7300e63cbce74da36d611ac46a3ee32637369685e6262ce2 files changed
+17
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
9 | 9 | | |
10 | 10 | | |
11 | 11 | | |
| 12 | + | |
12 | 13 | | |
13 | 14 | | |
14 | 15 | | |
| |||
125 | 126 | | |
126 | 127 | | |
127 | 128 | | |
128 | | - | |
129 | | - | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
130 | 136 | | |
131 | 137 | | |
132 | 138 | | |
| |||
0 commit comments