maybe use named args (as this argument is new and true/false isn’t very descriptive), feel free to ignore
0 assert_equal(expected, wallet.listdescriptors())
1- assert_equal(expected, wallet.listdescriptors(False))
2+ assert_equal(expected, wallet.listdescriptors(private=False))
3
4 self.log.info('Test list private descriptors')
5 expected_private = {
6@@ -84,16 +84,16 @@ class ListDescriptorsTest(BitcoinTestFramework):
7 'next': 0},
8 ],
9 }
10- assert_equal(expected_private, wallet.listdescriptors(True))
11+ assert_equal(expected_private, wallet.listdescriptors(private=True))
12
13 self.log.info("Test listdescriptors with encrypted wallet")
14 wallet.encryptwallet("pass")
15 assert_equal(expected, wallet.listdescriptors())
16
17 self.log.info('Test list private descriptors with encrypted wallet')
18- assert_raises_rpc_error(-13, 'Please enter the wallet passphrase with walletpassphrase first.', wallet.listdescriptors, True)
19+ assert_raises_rpc_error(-13, 'Please enter the wallet passphrase with walletpassphrase first.', wallet.listdescriptors, private=True)
20 wallet.walletpassphrase(passphrase="pass", timeout=1000000)
21- assert_equal(expected_private, wallet.listdescriptors(True))
22+ assert_equal(expected_private, wallet.listdescriptors(private=True))
23
24 self.log.info('Test list private descriptors with watch-only wallet')
25 node.createwallet(wallet_name='watch-only', descriptors=True, disable_private_keys=True)
26@@ -102,7 +102,7 @@ class ListDescriptorsTest(BitcoinTestFramework):
27 'desc': descsum_create('wpkh(' + xpub_acc + ')'),
28 'timestamp': 1296688602,
29 }])
30- assert_raises_rpc_error(-4, 'Can\'t get descriptor string', watch_only_wallet.listdescriptors, True)
31+ assert_raises_rpc_error(-4, 'Can\'t get descriptor string', watch_only_wallet.listdescriptors, private=True)
32
33 self.log.info('Test non-active non-range combo descriptor')
34 node.createwallet(wallet_name='w4', blank=True, descriptors=True)