-
Notifications
You must be signed in to change notification settings - Fork 38.7k
IsUsedDestination should count any known single-key address #17621
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
|
cc @kallewoof since you designed the first iteration |
|
Concept ACK Tests please :) |
|
Concept ACK |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Concept ACK on patching this in the interim before descriptor wallets arrive. Edit: Code review, built, ran tests, tested manually.
90bb5da to
2ca5a16
Compare
|
Pushed test, updated logic to fix test failure. Removed a function that resulted in a used footgun. |
2ca5a16 to
ef4a1a4
Compare
ef4a1a4 to
9f7eea5
Compare
kallewoof
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
utACK
|
ACK 9f7eea56f2b0fbc128b83fccab344190b1e6ce54 Reviewed code and tested locally. |
|
The following sections might be updated with supplementary metadata relevant to reviewers and maintainers. ConflictsReviewers, this pull request conflicts with the following ones:
If you consider this pull request important, please also help to review the conflicting pull requests. Ideally, start with the one that should be merged first. |
9f7eea5 to
0950245
Compare
achow101
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ACK 9f7eea56f2b0fbc128b83fccab344190b1e6ce54
test/functional/wallet_avoidreuse.py
Outdated
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit: label isn't needed
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It would be, once address type default is changed, no?
promag
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Concept ACK.
| const CScript& scriptPubKey = out.tx->tx->vout[out.i].scriptPubKey; | ||
| bool fValidAddress = ExtractDestination(scriptPubKey, address); | ||
| bool reused = avoid_reuse && pwallet->IsUsedDestination(address); | ||
| bool reused = avoid_reuse && pwallet->IsUsedDestination(out.tx->GetHash(), out.i); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit, you could move this line after L2932 - no point in calling IsUsedDestination if this address doesn't matter.
meshcollider
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Code Review ACK 0950245
|
Being backported in 17792. |
This plugs the privacy leak detailed at #17605, at least for the single-key case.