Skip to content

Commit

Permalink
fix sighash collect for p2sh transactions
Browse files Browse the repository at this point in the history
  • Loading branch information
Ouziel committed Dec 7, 2024
1 parent 2493b5a commit e31435e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion counterparty-core/counterpartycore/lib/gettxinfo.py
Original file line number Diff line number Diff line change
Expand Up @@ -218,7 +218,7 @@ def collect_sighash_flags(script_sig, witnesses):
# P2TR script path spend
if len(witnesses) >= 3:
for item in witnesses[:-2]: # ignore script and control block
flag = get_schnorr_signature_sighash_flag(item)
flag = get_schnorr_signature_sighash_flag(item) or get_der_signature_sighash_flag(item)
if flag is not None:
flags.append(flag)
return flags
Expand Down

0 comments on commit e31435e

Please sign in to comment.