@@ -184,7 +184,7 @@ def test_segwit_bumpfee_succeeds(self, rbf_node, dest_address):
184
184
# which spends it, and make sure bumpfee can be called on it.
185
185
186
186
segwit_in = next (u for u in rbf_node .listunspent () if u ["amount" ] == Decimal ("0.001" ))
187
- segwit_out = rbf_node .getaddressinfo (rbf_node .getnewaddress (address_type = 'p2sh-segwit ' ))
187
+ segwit_out = rbf_node .getaddressinfo (rbf_node .getnewaddress (address_type = 'bech32 ' ))
188
188
segwitid = send_to_witness (
189
189
use_p2wsh = False ,
190
190
node = rbf_node ,
@@ -365,7 +365,7 @@ def test_watchonly_psbt(self, peer_node, rbf_node, dest_address):
365
365
rbf_node .createwallet (wallet_name = "signer" , disable_private_keys = False , blank = True )
366
366
signer = rbf_node .get_wallet_rpc ("signer" )
367
367
assert signer .getwalletinfo ()['private_keys_enabled' ]
368
- result = signer . importmulti ( [{
368
+ reqs = [{
369
369
"desc" : priv_rec_desc ,
370
370
"timestamp" : 0 ,
371
371
"range" : [0 ,1 ],
@@ -378,29 +378,39 @@ def test_watchonly_psbt(self, peer_node, rbf_node, dest_address):
378
378
"range" : [0 , 0 ],
379
379
"internal" : True ,
380
380
"keypool" : False
381
- }])
381
+ }]
382
+ if self .options .descriptors :
383
+ result = signer .importdescriptors (reqs )
384
+ else :
385
+ result = signer .importmulti (reqs )
382
386
assert_equal (result , [{'success' : True }, {'success' : True }])
383
387
384
388
# Create another wallet with just the public keys, which creates PSBTs
385
389
rbf_node .createwallet (wallet_name = "watcher" , disable_private_keys = True , blank = True )
386
390
watcher = rbf_node .get_wallet_rpc ("watcher" )
387
391
assert not watcher .getwalletinfo ()['private_keys_enabled' ]
388
392
389
- result = watcher . importmulti ( [{
393
+ reqs = [{
390
394
"desc" : pub_rec_desc ,
391
395
"timestamp" : 0 ,
392
396
"range" : [0 , 10 ],
393
397
"internal" : False ,
394
398
"keypool" : True ,
395
- "watchonly" : True
399
+ "watchonly" : True ,
400
+ "active" : True ,
396
401
}, {
397
402
"desc" : pub_change_desc ,
398
403
"timestamp" : 0 ,
399
404
"range" : [0 , 10 ],
400
405
"internal" : True ,
401
406
"keypool" : True ,
402
- "watchonly" : True
403
- }])
407
+ "watchonly" : True ,
408
+ "active" : True ,
409
+ }]
410
+ if self .options .descriptors :
411
+ result = watcher .importdescriptors (reqs )
412
+ else :
413
+ result = watcher .importmulti (reqs )
404
414
assert_equal (result , [{'success' : True }, {'success' : True }])
405
415
406
416
funding_address1 = watcher .getnewaddress (address_type = 'bech32' )
0 commit comments