Skip to content

Commit 6e263c1

Browse files
remyersajtowns
authored andcommitted
do not use cached _single_hash for anyprevout* sighashs
1 parent 68f9e4d commit 6e263c1

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
@@ -1563,7 +1563,7 @@ bool SignatureHashSchnorr(uint256& hash_out, const ScriptExecutionData& execdata
15631563
// Transaction level data
15641564
ss << tx_to.nVersion;
15651565
ss << tx_to.nLockTime;
1566-
if (input_type != SIGHASH_ANYONECANPAY) {
1566+
if (input_type != SIGHASH_ANYONECANPAY && input_type != SIGHASH_ANYPREVOUT && input_type != SIGHASH_ANYPREVOUTANYSCRIPT) {
15671567
ss << cache.m_prevouts_single_hash;
15681568
ss << cache.m_spent_amounts_single_hash;
15691569
ss << cache.m_spent_scripts_single_hash;

0 commit comments

Comments
 (0)