-
Notifications
You must be signed in to change notification settings - Fork 38.7k
Force distinct destinations in CWallet::CreateTransaction #12419
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
Conversation
|
A similar check exists in |
|
Concept ACK. I think this should be enforced consistently. |
|
Can you be more specific @laanwj? |
|
Huh? No, I mean that exactly what this PR does, checking it in CreateTransaction is good. |
|
Ah ok, misunderstood you. |
|
utACK e82d179 |
|
@Sjors I guess we could remove the old check? |
|
Should all checks for duplicate addresses be removed? |
|
@promag I suggest reusing the original warning. |
|
Concept ACK, agree the original warning is more clear. |
| The last travis run for this pull request was 157 days ago and is thus outdated. To trigger a fresh travis build, this pull request should be closed and re-opened. |
|
Concept ACK |
|
This looks good but the comments above need addressing (feel free to cherry-pick from my EDIT: This will also prevent |
e82d179 to
3ba0298
Compare
Check that all transaction destinations, including change address if specified, are distinct.
3ba0298 to
04f45ea
Compare
|
Closing for now, as @meshcollider mentions, this approach breaks the following case: bitcoin/test/functional/wallet_groups.py Lines 76 to 83 in 3077f11
|


Check that all transaction destinations, including change address if specified, are distinct.
The error is also raised in the UI:
