@@ -492,8 +492,8 @@ def run_test(self):
492
492
self .nodes [1 ].createwallet ("extfund" )
493
493
ext_fund = self .nodes [1 ].get_wallet_rpc ("extfund" )
494
494
495
- # Make a weird but signable script. sh(pkh()) descriptor accomplishes this
496
- desc = descsum_create ("sh(pkh({}))" .format (privkey ))
495
+ # Make a weird but signable script. sh(wsh( pkh() )) descriptor accomplishes this
496
+ desc = descsum_create ("sh(wsh( pkh({}) ))" .format (privkey ))
497
497
if self .options .descriptors :
498
498
res = ext_fund .importdescriptors ([{"desc" : desc , "timestamp" : "now" }])
499
499
else :
@@ -511,7 +511,7 @@ def run_test(self):
511
511
self .test_send (from_wallet = ext_wallet , to_wallet = self .nodes [0 ], amount = 15 , inputs = [ext_utxo ], add_inputs = True , psbt = True , include_watching = True , expect_error = (- 4 , "Insufficient funds" ))
512
512
513
513
# But funding should work when the solving data is provided
514
- res = self .test_send (from_wallet = ext_wallet , to_wallet = self .nodes [0 ], amount = 15 , inputs = [ext_utxo ], add_inputs = True , psbt = True , include_watching = True , solving_data = {"pubkeys" : [addr_info ['pubkey' ]], "scripts" : [addr_info ["embedded" ]["scriptPubKey" ]]})
514
+ res = self .test_send (from_wallet = ext_wallet , to_wallet = self .nodes [0 ], amount = 15 , inputs = [ext_utxo ], add_inputs = True , psbt = True , include_watching = True , solving_data = {"pubkeys" : [addr_info ['pubkey' ]], "scripts" : [addr_info ["embedded" ]["scriptPubKey" ], addr_info [ "embedded" ][ "embedded" ][ "scriptPubKey" ] ]})
515
515
signed = ext_wallet .walletprocesspsbt (res ["psbt" ])
516
516
signed = ext_fund .walletprocesspsbt (res ["psbt" ])
517
517
assert signed ["complete" ]
0 commit comments