By deafult, in a newly created descriptor pockets that’s not watch-only and never empty, listdescriptors true
works and provides output.
Nevertheless, here’s a situation that breaks it:
- Get a brand new handle within the descriptor pockets.
- Retrieve its public handle (pub1)
- Create a multisig handle with utilizing this public handle (pub1) and two others (pub2, pub3)
- Import the next descriptor into the pockets:
sh(multi(priv1,pub2,pub3)
; I retrievedpriv1
fromlistdescriptors true
. - Now, if I strive
listdescriptors true
once more, an error is returned:
"error": {
"code": -4,
"message": "Cannot get descriptor string."
}
Is that this anticipated because of how I imported a descriptor that mixes xprv and pubkeys, or is it a bug?
Word: when importing such a descriptor, I acquired a warning:
{"success": true, "warnings": ["Not all private keys provided. Some wallet functionality may return unexpected errors"]}