Skip to content

Commit fa809af

Browse files
authored
Merge pull request #1141 from ElementsProject/roconnor-blockstream-patch-1
Fix tapscript comment
2 parents 6422e50 + 707cf20 commit fa809af

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/script/interpreter.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -3173,7 +3173,7 @@ static bool VerifyWitnessProgram(const CScriptWitness& witness, int witversion,
31733173
}
31743174
execdata.m_tapleaf_hash_init = true;
31753175
if ((control[0] & TAPROOT_LEAF_MASK) == TAPROOT_LEAF_TAPSCRIPT) {
3176-
// Tapscript (leaf version 0xc0)
3176+
// Tapscript (leaf version 0xc4)
31773177
execdata.m_validation_weight_left = ::GetSerializeSize(witness.stack, PROTOCOL_VERSION) + VALIDATION_WEIGHT_OFFSET;
31783178
execdata.m_validation_weight_left_init = true;
31793179
return ExecuteWitnessScript(stack, exec_script, flags, SigVersion::TAPSCRIPT, checker, execdata, serror);

0 commit comments

Comments
 (0)