Builds on top of #24343.
Adds additional tests, and makes ToPrivateString()
always succeed, using pubkeys in case privkeys are unavailable.
The following sections might be updated with supplementary metadata relevant to reviewers and maintainers.
See the guideline for information on the review process.
Type | Reviewers |
---|---|
ACK | achow101 |
If your review is incorrectly listed, please react with 👎 to this comment and the bot will ignore it on the next update.
Reviewers, 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.
352@@ -312,6 +353,9 @@ void DoCheck(const std::string& prv, const std::string& pub, const std::string&
353
354 /* Infer a descriptor from the generated script, and verify its solvability and that it roundtrips. */
355 auto inferred = InferDescriptor(spks[n], script_provider);
356+ if (ref.size() == 1) {
In dcc11864a8f7141298d71e5a61e686ccf0032b17 “Test roundtripping of descriptors ignoring keys”
How come this is only checked for non-ranged descriptors?
ref
is an array that may have multiple scripts because of combo. The line that creates it had RANGE
in it and that confused me.
102@@ -103,7 +103,7 @@ def run_test(self):
103 'desc': descsum_create('wpkh(' + xpub_acc + ')'),
104 'timestamp': 1296688602,
105 }])
106- assert_raises_rpc_error(-4, 'Can\'t get descriptor string', watch_only_wallet.listdescriptors, True)
107+ assert_equal(watch_only_wallet.listdescriptors(True), watch_only_wallet.listdescriptors(False))
disable_private_keys
enabled and return “wallet doesn’t contain private keys” error?
🐙 This pull request conflicts with the target branch and needs rebase.
Want to unsubscribe from rebase notifications on this pull request? Just convert this pull request to a “draft”.
There hasn’t been much activity lately and the patch still needs rebase. What is the status here?
There hasn’t been much activity lately and the patch still needs rebase. What is the status here?
There hasn’t been much activity lately and the patch still needs rebase. What is the status here?