maybe use named args (as this argument is new and true/false isn't very descriptive), feel free to ignore
assert_equal(expected, wallet.listdescriptors())
- assert_equal(expected, wallet.listdescriptors(False))
+ assert_equal(expected, wallet.listdescriptors(private=False))
self.log.info('Test list private descriptors')
expected_private = {
@@ -84,16 +84,16 @@ class ListDescriptorsTest(BitcoinTestFramework):
'next': 0},
],
}
- assert_equal(expected_private, wallet.listdescriptors(True))
+ assert_equal(expected_private, wallet.listdescriptors(private=True))
self.log.info("Test listdescriptors with encrypted wallet")
wallet.encryptwallet("pass")
assert_equal(expected, wallet.listdescriptors())
self.log.info('Test list private descriptors with encrypted wallet')
- assert_raises_rpc_error(-13, 'Please enter the wallet passphrase with walletpassphrase first.', wallet.listdescriptors, True)
+ assert_raises_rpc_error(-13, 'Please enter the wallet passphrase with walletpassphrase first.', wallet.listdescriptors, private=True)
wallet.walletpassphrase(passphrase="pass", timeout=1000000)
- assert_equal(expected_private, wallet.listdescriptors(True))
+ assert_equal(expected_private, wallet.listdescriptors(private=True))
self.log.info('Test list private descriptors with watch-only wallet')
node.createwallet(wallet_name='watch-only', descriptors=True, disable_private_keys=True)
@@ -102,7 +102,7 @@ class ListDescriptorsTest(BitcoinTestFramework):
'desc': descsum_create('wpkh(' + xpub_acc + ')'),
'timestamp': 1296688602,
}])
- assert_raises_rpc_error(-4, 'Can\'t get descriptor string', watch_only_wallet.listdescriptors, True)
+ assert_raises_rpc_error(-4, 'Can\'t get descriptor string', watch_only_wallet.listdescriptors, private=True)
self.log.info('Test non-active non-range combo descriptor')
node.createwallet(wallet_name='w4', blank=True, descriptors=True)