Skip to content

Commit a410076

Browse files
committed
Merge remote-tracking branch 'origin/master'
2 parents eedf1f2 + 395665b commit a410076

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

lib/instantlock/instantlock.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ class InstantLock {
7575
signature,
7676
};
7777

78-
if (version === 1) {
78+
if (version >= 1) {
7979
result.version = version;
8080
result.cyclehash = cyclehash;
8181
}
@@ -406,7 +406,7 @@ class InstantLock {
406406
signature: this.signature.toString('hex'),
407407
};
408408

409-
if (this.version === 1) {
409+
if (this.version >= 1) {
410410
result.version = this.version;
411411
result.cyclehash = this.cyclehash;
412412
}

lib/transaction/transaction.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1494,7 +1494,7 @@ Transaction.prototype.getOutPointBuffer = function getOutPointBuffer(
14941494
);
14951495
}
14961496

1497-
var binaryTransactionHash = Buffer.from(this.hash, 'hex');
1497+
var binaryTransactionHash = this._getHash();
14981498
var indexBuffer = Buffer.alloc(4);
14991499

15001500
indexBuffer.writeUInt32LE(outputIndex, 0);

test/transaction/transaction.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1591,7 +1591,7 @@ describe('Transaction', function () {
15911591

15921592
var outPointBuffer = transaction.getOutPointBuffer(0);
15931593

1594-
expect(outPointBuffer.toString('hex')).to.be.equal(txHash + indexHex);
1594+
expect(outPointBuffer.toString('hex')).to.be.equal(transaction._getHash().toString('hex') + indexHex);
15951595
expect(outPointBuffer.length).to.be.equal(36);
15961596
});
15971597

0 commit comments

Comments
 (0)