Skip to content

Commit 707cf20

Browse files
Fix tapscript comment
In elements tapscript is verison 0xc4
1 parent 6422e50 commit 707cf20

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
@@ -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)