@@ -492,8 +492,8 @@ def run_test(self):
492492 self .nodes [1 ].createwallet ("extfund" )
493493 ext_fund = self .nodes [1 ].get_wallet_rpc ("extfund" )
494494
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 ))
497497 if self .options .descriptors :
498498 res = ext_fund .importdescriptors ([{"desc" : desc , "timestamp" : "now" }])
499499 else :
@@ -511,7 +511,7 @@ def run_test(self):
511511 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" ))
512512
513513 # 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" ] ]})
515515 signed = ext_wallet .walletprocesspsbt (res ["psbt" ])
516516 signed = ext_fund .walletprocesspsbt (res ["psbt" ])
517517 assert signed ["complete" ]
0 commit comments