do not throw on empty stack.
This commit is contained in:
parent
018d534c47
commit
f8ec64d46f
@ -180,8 +180,9 @@ script.verify = function verify(input, output, tx, i, flags) {
|
|||||||
// Reset the stack
|
// Reset the stack
|
||||||
stack = copy;
|
stack = copy;
|
||||||
|
|
||||||
// Stack should _never_ be empty at this point
|
// Stack should not be empty at this point
|
||||||
assert(stack.length !== 0);
|
if (stack.length === 0)
|
||||||
|
return false;
|
||||||
|
|
||||||
// Grab the real redeem script
|
// Grab the real redeem script
|
||||||
redeem = stack.pop();
|
redeem = stack.pop();
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user