fix lockTime and changeIndex.

This commit is contained in:
Christopher Jeffrey 2016-01-14 18:16:49 -08:00
parent 05a8aeeb48
commit 7854ec07d8
2 changed files with 2 additions and 2 deletions

View File

@ -1100,7 +1100,7 @@ script.isLockTime = function isLockTime(s, check) {
script.lockTime = function lockTime(s) {
if (!script.isLockTime(s))
return false;
return 0;
return script.num(s[0], true);
};

View File

@ -62,7 +62,7 @@ function TX(data, block) {
this.hardFee = data.hardFee || null;
this.changeAddress = data.changeAddress || null;
this.changeIndex = data.changeIndex || -1;
this.changeIndex = data.changeIndex != null ? data.changeIndex : -1;
// ps = Pending Since
this.ps = this.ts === 0 ? utils.now() : 0;