Repository navigation
Conversation
|
The following sections might be updated with supplementary metadata relevant to reviewers and maintainers. External sites
ReviewsSee the guideline and AI policy for information on the review process.
If your review is incorrectly listed, please copy-paste 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. LLM Linter (✨ experimental)Possible typos and grammar issues:
Possible places where named args for integral literals may be used (e.g.
2026-11-07 03:09:03 |
3246efb to
a49e42b
Compare
|
🚧 At least one of the CI tasks failed. HintsTry to run the tests locally, according to the documentation. However, a CI failure may still
Leave a comment here, if you need help tracking down a confusing failure. |
|
Concept ACK |
Apply the wallet relationship commits onto the latest bitcoin#36442 and bitcoin#36443 implementations. Integrate known-key substitution and repair extracted functional-test setup.
Apply the wallet relationship commits onto the latest bitcoin#36442 and bitcoin#36443 implementations. Integrate known-key substitution and repair extracted functional-test setup. Integration fixes carried by this merge: - Fix Clang -Wthread-safety errors by locking each descriptor manager when reading its multipath descriptor or updating its relationships. - Snapshot local keys, cache and relative IDs before acquiring relatives' locks, and retain shared descriptor ownership during reconstruction. - Reconstruct exported multipath descriptors before taking the caller's descriptor lock, avoiding receive/change lock-order inversions.
Apply the wallet relationship commits onto the latest bitcoin#36442 and bitcoin#36443 implementations. Integrate known-key substitution and repair extracted functional-test setup. Integration fixes carried by this merge: - Fix Clang -Wthread-safety errors by locking each descriptor manager when reading its multipath descriptor or updating its relationships. - Snapshot local keys, cache and relative IDs before acquiring relatives' locks, and retain shared descriptor ownership during reconstruction. - Reconstruct exported multipath descriptors before taking the caller's descriptor lock, avoiding receive/change lock-order inversions.
Apply the wallet relationship commits onto the latest bitcoin#36442 and bitcoin#36443 implementations. Integrate known-key substitution and repair extracted functional-test setup. Integration fixes carried by this merge: - Fix Clang -Wthread-safety errors by locking each descriptor manager when reading its multipath descriptor or updating its relationships. - Snapshot local keys, cache and relative IDs before acquiring relatives' locks, and retain shared descriptor ownership during reconstruction. - Reconstruct exported multipath descriptors before taking the caller's descriptor lock, avoiding receive/change lock-order inversions.
a49e42b to
ebb9ad9
Compare
We will want to have member functions on KeyPath later, so make it a class now.
Moves all of the multipath parsing into ParseHDKeypath, and let KeyPathElement be a multipath element.
Internally, descriptor parsing will produce multipath descriptor objects rather than std::vector<DescriptorImpl>. This single multipath descriptor becomes std::vector<Descriptor> within Parse. Future commits will return the single multipath descriptor object for all descriptor parsing.
Instead of a std::vector<std::unique_ptr<Descriptor>>, Parse can return a single std::unique_ptr<Descriptor> that contains the multipath information if the descriptor was multipath. Callers that require the multipath expansion use GetMultipathExpansion() to get the expanded descriptors.
Check that the correct multipath descriptor appears in listdescriptors for a typical single key wallet. Also check that the correct non-multipath descriptors appears, and also do for private listdescriptors.
ebb9ad9 to
f57989d
Compare
|
🐙 This pull request conflicts with the target branch and needs rebase. |
|
Concept ACK more for relaying the multi-path info for the automatically generated (and imported) descriptors of the wallet. |

The wallet does not store any information about multipath descriptors. When a multipath descriptor is imported, it is first expanded, then the expansion descriptors are imported into the wallet.
This PR adds a field to
WalletDescriptorwhich stores the IDs of the ScriptPubKeyMans of the descriptors that are part of the expansion, in the order that they are expanded. This allows us to useReconstructMultipathto produce the multipath descriptor when necessary.This is useful for working with hardware wallets that require policy registration, particularly those that require resending the descriptor that was registered.
listdescriptorsis updated to include amultipath_descriptorfield which contains the multipath descriptor for each individual descriptor if it originally came from a multipath descriptor.Lastly, the automatically generated descriptors are now produced and stored as multipath descriptors, so
listdescriptorswill provide amultipath_descriptorfor everything that the wallet automatically generates.Note that the IDs stored in the wallet are ScriptPubKeyMan IDs, which we cannot compute from a descriptor as we assume to be opaque blobs since #35445.
Alternative to #36133, depends on #36442 and #36443