Skip to content

Conversation

@instagibbs
Copy link
Member

@instagibbs instagibbs commented Nov 27, 2019

This plugs the privacy leak detailed at #17605, at least for the single-key case.

@instagibbs
Copy link
Member Author

cc @kallewoof since you designed the first iteration

@achow101
Copy link
Member

achow101 commented Dec 6, 2019

Concept ACK

Tests please :)

@kallewoof
Copy link
Contributor

Concept ACK

Copy link
Member

@jonatack jonatack left a 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.

@instagibbs
Copy link
Member Author

Pushed test, updated logic to fix test failure.

Removed a function that resulted in a used footgun.

Copy link
Contributor

@kallewoof kallewoof left a comment

Choose a reason for hiding this comment

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

utACK

@promag promag mentioned this pull request Dec 23, 2019
@fjahr
Copy link
Contributor

fjahr commented Dec 24, 2019

ACK 9f7eea56f2b0fbc128b83fccab344190b1e6ce54

Reviewed code and tested locally.

@DrahtBot
Copy link
Contributor

DrahtBot commented Dec 29, 2019

The following sections might be updated with supplementary metadata relevant to reviewers and maintainers.

Conflicts

Reviewers, this pull request conflicts with the following ones:

  • #17889 (wallet: Improve CWallet:MarkDestinationsDirty by promag)
  • #17843 (wallet: Reset reused transactions cache by fjahr)
  • #17838 (test: test the >10 UTXO case for output groups by kallewoof)
  • #17824 (wallet: Improve coin selection for destination groups >10 by fjahr)

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.

Copy link
Member

@achow101 achow101 left a comment

Choose a reason for hiding this comment

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

ACK 9f7eea56f2b0fbc128b83fccab344190b1e6ce54

Copy link
Member

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

Copy link
Contributor

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?

Copy link
Contributor

@promag promag left a 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);
Copy link
Contributor

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.

@fanquake fanquake requested a review from meshcollider January 6, 2020 00:02
Copy link
Contributor

@meshcollider meshcollider left a 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

@meshcollider meshcollider merged commit 0950245 into bitcoin:master Jan 7, 2020
@fanquake
Copy link
Member

Being backported in 17792.

@bitcoin bitcoin locked as resolved and limited conversation to collaborators Feb 15, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels