do not and locktimes.

This commit is contained in:
Christopher Jeffrey 2016-06-20 03:21:53 -07:00
parent 8f3f174b25
commit ea512ab9aa
No known key found for this signature in database
GPG Key ID: 8962AB9DE6666BBD

View File

@ -1488,7 +1488,7 @@ Script.prototype.execute = function execute(stack, flags, tx, index, version) {
if (locktime.cmpn(0) < 0)
throw new ScriptError('NEGATIVE_LOCKTIME', op, ip);
locktime = locktime.uand(utils.U32).toNumber();
locktime = locktime.toNumber();
if (!Script.checkLocktime(locktime, tx, index))
throw new ScriptError('UNSATISFIED_LOCKTIME', op, ip);
@ -1514,7 +1514,7 @@ Script.prototype.execute = function execute(stack, flags, tx, index, version) {
if (locktime.cmpn(0) < 0)
throw new ScriptError('NEGATIVE_LOCKTIME', op, ip);
locktime = locktime.uand(utils.U32).toNumber();
locktime = locktime.toNumber();
if ((locktime & constants.sequence.DISABLE_FLAG) !== 0)
break;