refactor(wallet)!: make internal descriptor optional in constructors#1513
refactor(wallet)!: make internal descriptor optional in constructors#1513notmandatory wants to merge 2 commits intobitcoindevkit:masterfrom
Conversation
Updated load_with_descriptors() requires a ChangeSet and descriptors, validates they match. If the given descriptors have private keys signers are added. Also rename load_from_changeset() to load() and remove no longer needed NewOrLoadError.
a653e94 to
dd03db4
Compare
|
Nice! I think it is a good compromise for now. By the way, this still checks if the descriptors are unique right? |
Yes I kept the check that prevents duplicate descriptors, I just don't add a second descriptor and use the external one for change addresses. To keep the current API the same (not add |
dd03db4 to
9855998
Compare
|
closing in favor of #1533 |
Description
WIP! needs more testing to ensure everything works without a change descriptor.
If OK then can add new constructors for single descriptor wallets in a post 1.0 release.
Built on #1512 and should fix #1511.
Notes to the reviewers
Changelog notice
Checklists
All Submissions:
cargo fmtandcargo clippybefore committingNew Features:
Bugfixes: