Skip to content

Commit

Permalink
Avoid creating legacy wallets in wallet_importdescriptors.py
Browse files Browse the repository at this point in the history
  • Loading branch information
achow101 committed Nov 1, 2020
1 parent 6c9c12b commit d4b67ad
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion test/functional/wallet_importdescriptors.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ def set_test_params(self):
["-addresstype=bech32", "-keypool=5"]
]
self.setup_clean_chain = True
self.wallet_names = []

def skip_test_if_missing_module(self):
self.skip_if_no_wallet()
Expand All @@ -59,7 +60,7 @@ def test_importdesc(self, req, success, error_code=None, error_message=None, war

def run_test(self):
self.log.info('Setting up wallets')
self.nodes[0].createwallet(wallet_name='w0', disable_private_keys=False)
self.nodes[0].createwallet(wallet_name='w0', disable_private_keys=False, descriptors=True)
w0 = self.nodes[0].get_wallet_rpc('w0')

self.nodes[1].createwallet(wallet_name='w1', disable_private_keys=True, blank=True, descriptors=True)
Expand Down

0 comments on commit d4b67ad

Please sign in to comment.