Skip to content

Commit e051b76

Browse files
author
Slaals
committed
Adds com
1 parent 41230f3 commit e051b76

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

bitcoin-opcodes/script.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -98,6 +98,7 @@ class StackExecutor {
9898
case 'OP_ENDIF':
9999
break;
100100
case 'OP_ELSE':
101+
// OP_ELSE evaluates only if a OP_IF has been evaluated
101102
if (!this.isJump) {
102103
for (let i = this.stepIndex; i < this.script.length; i++) {
103104
if (this.script[i] == 'OP_ENDIF') {

0 commit comments

Comments
 (0)