potential tx.verify fix.

This commit is contained in:
Christopher Jeffrey 2015-12-09 11:56:08 -08:00
parent a0a391e89e
commit 2412c0999b

View File

@ -437,6 +437,9 @@ TX.prototype.verify = function verify(index, force) {
if (!res)
return false;
// Might be necessary for arithmetic:
// if (stack.length === 0 || new bn(stack.pop()).cmp(0) !== 0)
if (stack.length === 0 || !utils.isEqual(stack.pop(), [ 1 ]))
return false;