script: include opcode and instruction pointer in stack size errors.
This commit is contained in:
parent
13892b3b38
commit
47eb484657
@ -599,7 +599,7 @@ Script.prototype.execute = function execute(stack, flags, tx, index, value, vers
|
|||||||
stack.push(op.data);
|
stack.push(op.data);
|
||||||
|
|
||||||
if (stack.length + alt.length > consensus.MAX_SCRIPT_STACK)
|
if (stack.length + alt.length > consensus.MAX_SCRIPT_STACK)
|
||||||
throw new ScriptError('STACK_SIZE');
|
throw new ScriptError('STACK_SIZE', op, ip);
|
||||||
|
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
@ -1308,7 +1308,7 @@ Script.prototype.execute = function execute(stack, flags, tx, index, value, vers
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (stack.length + alt.length > consensus.MAX_SCRIPT_STACK)
|
if (stack.length + alt.length > consensus.MAX_SCRIPT_STACK)
|
||||||
throw new ScriptError('STACK_SIZE');
|
throw new ScriptError('STACK_SIZE', op, ip);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (state.length !== 0)
|
if (state.length !== 0)
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user