From 9a62ab600f75f188c838f81a658e2f976ad6ae39 Mon Sep 17 00:00:00 2001 From: Daniel Cousens Date: Thu, 28 Jan 2016 00:56:58 +1100 Subject: [PATCH] tests: update integration tests to use setLockTime --- test/integration/advanced.js | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/test/integration/advanced.js b/test/integration/advanced.js index c28e78d..16c09cf 100644 --- a/test/integration/advanced.js +++ b/test/integration/advanced.js @@ -95,13 +95,11 @@ describe('bitcoinjs-lib (advanced)', function () { this.timeout(30000) var tx2 = new bitcoin.TransactionBuilder(network) -// tx2.setLockTime(threeHoursAgo) // TODO + tx2.setLockTime(threeHoursAgo) tx2.addInput(txId, 0, 0xfffffffe) tx2.addOutput(alice.getAddress(), 1000) var tx2Raw = tx2.buildIncomplete() - tx2Raw.locktime = threeHoursAgo // TODO - var hashType = bitcoin.Transaction.SIGHASH_ALL var signatureHash = tx2Raw.hashForSignature(0, redeemScript, hashType) var signature = alice.sign(signatureHash) @@ -120,13 +118,11 @@ describe('bitcoinjs-lib (advanced)', function () { this.timeout(30000) var tx2 = new bitcoin.TransactionBuilder(network) -// tx2.setLockTime(threeHoursAgo) // TODO + tx2.setLockTime(threeHoursAgo) tx2.addInput(txId, 0, 0xfffffffe) tx2.addOutput(alice.getAddress(), 1000) var tx2Raw = tx2.buildIncomplete() - tx2Raw.locktime = threeHoursAgo // TODO - var hashType = bitcoin.Transaction.SIGHASH_ALL var signatureHash = tx2Raw.hashForSignature(0, redeemScript, hashType) var signatureA = alice.sign(signatureHash)