test: Replace importpubkey

This commit is contained in:
Ava Chow committed 2025-05-09 12:31:53 -07:00
1 parent fe838dd391
commit 4d32c19516
5 files changed
+8 -21

No files matched your search

+2 -1
View File
@@ -45,7 +45,8 @@ class SimulateTxTest(BitcoinTestFramework):
address2 = w1.getnewaddress()
# Add address1 as watch-only to w2
w2.importpubkey(pubkey=w1.getaddressinfo(address1)["pubkey"])
import_res = w2.importdescriptors([{"desc": w1.getaddressinfo(address1)["desc"], "timestamp": "now"}])
assert_equal(import_res[0]["success"], True)
tx1 = node.createrawtransaction([], [{address1: 5.0}])
tx2 = node.createrawtransaction([], [{address2: 10.0}])