Skip to content

Commit 29345a1

Browse files
committed
Be explicit about tapleaf version forwarding
1 parent 8bf5b86 commit 29345a1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

bip-0345.mediawiki

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -261,7 +261,7 @@ where
261261
After the stack is parsed, the following validation checks are performed:
262262

263263
* Let the output designated by <code><trigger-vout-idx></code> be called ''triggerOut''.
264-
* If the scriptPubKey of ''triggerOut'' is not a witness program of the same version as the currently executing script, script execution MUST fail and terminate immediately.
264+
* If the scriptPubKey of ''triggerOut'' is not a witness program of the same version and same tapleaf version as the currently executing script, script execution MUST fail and terminate immediately.
265265
* Let the script constructed by taking the <code><leaf-update-script-body></code> and prefixing it with minimally-encoded data pushes of the <code><n-pushes></code> leaf-update script data items be called the ''leaf-update-script''.
266266
** The leaf-update data items will be in the same order in the ''leaf-update-script'' as they appeared on the stack.
267267
* If the scriptPubKey of ''triggerOut'' does not match that of a taptree that is identical to that of the currently evaluated input, but with the leaf script substituted for ''leaf-update-script'', script execution when spending this output MUST fail and terminate immediately.

0 commit comments

Comments
 (0)