Replace CAffectedKeysVisitor with descriptor based logic #14821
pull sipa wants to merge 1 commits into bitcoin:master from sipa:201810_die_caffectedkeysvisitor_die changing 1 files +13 ā67-
sipa commented at 8:30 pm on November 27, 2018: memberIt seems we don’t need a custom visitor pattern anymore to find what keys are affected by a script. Instead, infer the descriptor, and see which keys it expands to.
-
Replace CAffectedKeysVisitor with descriptor based logic 0e75f44a09
-
MarcoFalke added the label Refactoring on Nov 27, 2018
-
MarcoFalke added the label Wallet on Nov 27, 2018
-
instagibbs commented at 8:51 pm on November 27, 2018: member
+13 ā67
concept ACK, note that this will now include pubkeys you have, not only private keys, which I think is a more sane general anyways.
-
DrahtBot commented at 10:31 pm on November 27, 2018: member
The following sections might be updated with supplementary metadata relevant to reviewers and maintainers.
Conflicts
Reviewers, this pull request conflicts with the following ones:
- #14144 (Refactoring: Clarify code using encrypted_batch in CWallet by domob1812)
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.
-
meshcollider commented at 6:16 am on November 28, 2018: contributorConcept ACK
-
in src/wallet/wallet.cpp:108 in 0e75f44a09
159- { 160- CKeyID id(keyid); 161- if (keystore.HaveKey(id)) { 162- vKeys.push_back(id); 163- } 164+std::vector<CKeyID> GetAffectedKeys(const CScript& spk, const SigningProvider& provider)
promag commented at 10:10 am on November 28, 2018:nit,static
. Could also keep some comment.
instagibbs commented at 3:42 pm on November 28, 2018:Could even make it more specific with the updated behavior.
Empact commented at 7:35 am on December 7, 2018:nit: script_pub_key would be a more readable arg name. Granted Iām a noob but I had to check the callers.promag changes_requestedpromag commented at 10:20 am on November 28, 2018: memberutACK 0e75f44.meshcollider commented at 9:17 pm on November 30, 2018: contributorinstagibbs commented at 8:17 am on December 2, 2018: member@sipa if you’d like you could take this test: https://github.com/instagibbs/bitcoin/commit/a80edd7e689e89e40d4ba98f3770c5da2bc8d174jonasschnelli commented at 11:18 pm on December 9, 2018: contributorutACK 0e75f44a09ed07ff5eeeb142a4cefc4aba0ddf32 also in favour to pull in https://github.com/instagibbs/bitcoin/commit/a80edd7e689e89e40d4ba98f3770c5da2bc8d174instagibbs commented at 2:09 pm on December 10, 2018: member@jonasschnelli I ended up PRing it, that commit is bad anyways: https://github.com/bitcoin/bitcoin/pull/14857sipa commented at 10:04 pm on December 13, 2018: member@instagibbs #14857 is merged, any suggested improvements to this PR left?instagibbs commented at 10:07 pm on December 13, 2018: membermeshcollider merged this on Dec 14, 2018meshcollider closed this on Dec 14, 2018
meshcollider referenced this in commit 7a30e0f6c5 on Dec 14, 2018deadalnix referenced this in commit 3f4c090205 on Jun 6, 2020christiancfifi referenced this in commit 8c68b28d09 on Aug 24, 2021christiancfifi referenced this in commit e10ba2fa03 on Aug 24, 2021MarcoFalke locked this on Sep 8, 2021
github-metadata-mirror
This is a metadata mirror of the GitHub repository bitcoin/bitcoin. This site is not affiliated with GitHub. Content is generated from a GitHub metadata backup.
generated: 2024-11-17 09:12 UTC
This is a metadata mirror of the GitHub repository bitcoin/bitcoin. This site is not affiliated with GitHub. Content is generated from a GitHub metadata backup.
generated: 2024-11-17 09:12 UTC
This site is hosted by @0xB10C
More mirrored repositories can be found on mirror.b10c.me
More mirrored repositories can be found on mirror.b10c.me