0
0
Fork 0
mirror of https://github.com/bitcoin/bitcoin.git synced 2025-02-12 11:19:08 -05:00

Make import tests in wallet_listtransactions.py legacy wallet only

Existing import* RPCs are disabled for descriptor wallets, so only do
these tests for legacy wallets.
This commit is contained in:
Andrew Chow 2020-04-06 15:30:49 -04:00
parent dc81418fd0
commit 553dbf9af4

View file

@ -91,6 +91,8 @@ class ListTransactionsTest(BitcoinTestFramework):
{"category": "receive", "amount": Decimal("0.44")},
{"txid": txid})
if not self.options.descriptors:
# include_watchonly is a legacy wallet feature, so don't test it for descriptor wallets
pubkey = self.nodes[1].getaddressinfo(self.nodes[1].getnewaddress())['pubkey']
multisig = self.nodes[1].createmultisig(1, [pubkey])
self.nodes[0].importaddress(multisig["redeemScript"], "watchonly", False, True)