mirror of
https://github.com/ElementsProject/elements.git
synced 2026-08-17 13:07:54 +02:00
Merge pull request #1141 from ElementsProject/roconnor-blockstream-patch-1
Fix tapscript comment
This commit is contained in:
commit
fa809aff5e
1 changed files with 1 additions and 1 deletions
|
|
@ -3173,7 +3173,7 @@ static bool VerifyWitnessProgram(const CScriptWitness& witness, int witversion,
|
||||||
}
|
}
|
||||||
execdata.m_tapleaf_hash_init = true;
|
execdata.m_tapleaf_hash_init = true;
|
||||||
if ((control[0] & TAPROOT_LEAF_MASK) == TAPROOT_LEAF_TAPSCRIPT) {
|
if ((control[0] & TAPROOT_LEAF_MASK) == TAPROOT_LEAF_TAPSCRIPT) {
|
||||||
// Tapscript (leaf version 0xc0)
|
// Tapscript (leaf version 0xc4)
|
||||||
execdata.m_validation_weight_left = ::GetSerializeSize(witness.stack, PROTOCOL_VERSION) + VALIDATION_WEIGHT_OFFSET;
|
execdata.m_validation_weight_left = ::GetSerializeSize(witness.stack, PROTOCOL_VERSION) + VALIDATION_WEIGHT_OFFSET;
|
||||||
execdata.m_validation_weight_left_init = true;
|
execdata.m_validation_weight_left_init = true;
|
||||||
return ExecuteWitnessScript(stack, exec_script, flags, SigVersion::TAPSCRIPT, checker, execdata, serror);
|
return ExecuteWitnessScript(stack, exec_script, flags, SigVersion::TAPSCRIPT, checker, execdata, serror);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue