p2wsh fix

This commit is contained in:
scgbckbone 2025-08-02 15:23:31 +02:00
parent 7d3c9828ba
commit a973c7edc1

View File

@ -2810,8 +2810,11 @@ class psbtObject(psbtProxy):
if inp.is_segwit:
# p2sh-p2wsh & p2sh-p2wpkh still need redeem here (redeem is witness scriptPubKey)
# for p2wpkh & p2wsh inp.scriptSig is None (no redeem script bloat anymore)
txi.scriptSig = ser_string(inp.get_scriptSig())
txi.scriptSig = inp.get_scriptSig()
# for p2wpkh & p2wsh inp.scriptSig is b'' (no redeem script bloat anymore) - do not ser_string
if txi.scriptSig:
txi.scriptSig = ser_string(inp.get_scriptSig())
# Actual signature will be in witness data area
else:
# insert the new signature(s), assuming fully signed txn.