fix lockTime and changeIndex.
This commit is contained in:
parent
05a8aeeb48
commit
7854ec07d8
@ -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);
|
||||
};
|
||||
|
||||
@ -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;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user