mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-05-19 00:11:42 +02:00
test: Fix wallet_listdescriptors.py if bdb is not compiled
This commit is contained in:
parent
531c2b7c04
commit
0c845e3f89
@ -30,9 +30,10 @@ class ListDescriptorsTest(BitcoinTestFramework):
|
|||||||
node = self.nodes[0]
|
node = self.nodes[0]
|
||||||
assert_raises_rpc_error(-18, 'No wallet is loaded.', node.listdescriptors)
|
assert_raises_rpc_error(-18, 'No wallet is loaded.', node.listdescriptors)
|
||||||
|
|
||||||
self.log.info('Test that the command is not available for legacy wallets.')
|
if self.is_bdb_compiled():
|
||||||
node.createwallet(wallet_name='w1', descriptors=False)
|
self.log.info('Test that the command is not available for legacy wallets.')
|
||||||
assert_raises_rpc_error(-4, 'listdescriptors is not available for non-descriptor wallets', node.listdescriptors)
|
node.createwallet(wallet_name='w1', descriptors=False)
|
||||||
|
assert_raises_rpc_error(-4, 'listdescriptors is not available for non-descriptor wallets', node.listdescriptors)
|
||||||
|
|
||||||
self.log.info('Test the command for empty descriptors wallet.')
|
self.log.info('Test the command for empty descriptors wallet.')
|
||||||
node.createwallet(wallet_name='w2', blank=True, descriptors=True)
|
node.createwallet(wallet_name='w2', blank=True, descriptors=True)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user