diff options
author | Ivan Metlushko <metlushko@gmail.com> | 2020-10-15 18:02:58 +0700 |
---|---|---|
committer | Ivan Metlushko <metlushko@gmail.com> | 2020-10-15 18:02:58 +0700 |
commit | 538be4219ae7e65862e4aff540af88c9421e6061 (patch) | |
tree | ce25540988e4834c81077c6f9b895522e51ef211 /test | |
parent | 711ddce94377aea38ce30fa93b3ee8ea1d96ba98 (diff) |
wallet: fix importdescriptor silent fail
Diffstat (limited to 'test')
-rwxr-xr-x | test/functional/wallet_importdescriptors.py | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/test/functional/wallet_importdescriptors.py b/test/functional/wallet_importdescriptors.py index 2d982edef8..f679dc8a12 100755 --- a/test/functional/wallet_importdescriptors.py +++ b/test/functional/wallet_importdescriptors.py @@ -207,6 +207,15 @@ class ImportDescriptorsTest(BitcoinTestFramework): success=False, error_code=-4, error_message='Cannot import private keys to a wallet with private keys disabled') + + self.log.info("Should not import a descriptor with hardened derivations when private keys are disabled") + self.test_importdesc({"desc": descsum_create("wpkh(" + xpub + "/1h/*)"), + "timestamp": "now", + "range": 1}, + success=False, + error_code=-4, + error_message='Cannot expand descriptor. Probably because of hardened derivations without private keys provided') + for address in addresses: test_address(w1, address, |