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:
parent
dc81418fd0
commit
553dbf9af4
1 changed files with 14 additions and 12 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Reference in a new issue