Skip to content

Commit

Permalink
test: importdescriptors is not available for non-descriptor wallets
Browse files Browse the repository at this point in the history
  • Loading branch information
brunoerg committed Jan 6, 2025
1 parent 4036ee3 commit 6b6b559
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions test/functional/wallet_descriptor.py
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,8 @@ def run_test(self):
self.nodes[0].createwallet(wallet_name="legacy1", descriptors=False)
wallet_info = self.nodes[0].getwalletinfo()
assert_equal(wallet_info['format'], 'bdb')
legacy1 = self.nodes[0].get_wallet_rpc('legacy1')
assert_raises_rpc_error(-4, "importdescriptors is not available for non-descriptor wallets", legacy1.importdescriptors, [{"desc": "abc", "timestamp": "now"}])
self.nodes[0].unloadwallet("legacy1")
else:
self.log.warning("Skipping BDB test")
Expand Down

0 comments on commit 6b6b559

Please sign in to comment.