test: Replace usage of importaddress
This commit is contained in:
1 parent
fcc457573f
commit
d314207779
7 files changed
+34
-48
No files matched your search
@@ -90,7 +90,7 @@ class ImportPrunedFundsTest(BitcoinTestFramework):
|
||||
# Import with affiliated address with no rescan
|
||||
self.nodes[1].createwallet('wwatch', disable_private_keys=True)
|
||||
wwatch = self.nodes[1].get_wallet_rpc('wwatch')
|
||||
wwatch.importaddress(address=address2, rescan=False)
|
||||
wwatch.importdescriptors([{"desc": self.nodes[0].getaddressinfo(address2)["desc"], "timestamp": "now"}])
|
||||
wwatch.importprunedfunds(rawtransaction=rawtxn2, txoutproof=proof2)
|
||||
assert [tx for tx in wwatch.listtransactions(include_watchonly=True) if tx['txid'] == txnid2]
|
||||
|
||||
|
||||
Reference in new issue
Block a user