Skip to content

Commit d79c8fc

Browse files
committed
do not use *_single_hash for anyprevout*
1 parent fa6395b commit d79c8fc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/script/interpreter.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1552,7 +1552,7 @@ bool SignatureHashSchnorr(uint256& hash_out, const ScriptExecutionData& execdata
15521552
// Transaction level data
15531553
ss << tx_to.nVersion;
15541554
ss << tx_to.nLockTime;
1555-
if (input_type != SIGHASH_ANYONECANPAY) {
1555+
if (input_type != SIGHASH_ANYONECANPAY && input_type != SIGHASH_ANYPREVOUT && input_type != SIGHASH_ANYPREVOUTANYSCRIPT) {
15561556
ss << cache.m_prevouts_single_hash;
15571557
ss << cache.m_spent_amounts_single_hash;
15581558
ss << cache.m_spent_scripts_single_hash;

0 commit comments

Comments
 (0)