tests/integration: use our own faucet keyPair

This commit is contained in:
Daniel Cousens 2016-10-12 14:31:41 +11:00 committed by Daniel Cousens
commit ebaf1496e1
5 changed files with 57 additions and 52 deletions
test/integration

View file

@ -49,7 +49,7 @@ describe('bitcoinjs-lib (CLTV)', function () {
var tx = new bitcoin.TransactionBuilder(network)
tx.setLockTime(timeUtc)
tx.addInput(unspent.txId, 0, 0xfffffffe)
tx.addOutput(alice.getAddress(), 1000)
tx.addOutput('n2eMqTT929pb1RDNuqEnxdaLau1rxy3efi', 1e4)
var txRaw = tx.buildIncomplete()
var signatureHash = txRaw.hashForSignature(0, redeemScript, hashType)
@ -82,7 +82,7 @@ describe('bitcoinjs-lib (CLTV)', function () {
var tx = new bitcoin.TransactionBuilder(network)
tx.addInput(unspent.txId, 0, 0xfffffffe)
tx.addOutput(alice.getAddress(), 1000)
tx.addOutput('n2eMqTT929pb1RDNuqEnxdaLau1rxy3efi', 1e4)
var txRaw = tx.buildIncomplete()
var signatureHash = txRaw.hashForSignature(0, redeemScript, hashType)
@ -115,7 +115,7 @@ describe('bitcoinjs-lib (CLTV)', function () {
var tx = new bitcoin.TransactionBuilder(network)
tx.setLockTime(timeUtc)
tx.addInput(unspent.txId, 0, 0xfffffffe)
tx.addOutput(alice.getAddress(), 1000)
tx.addOutput('n2eMqTT929pb1RDNuqEnxdaLau1rxy3efi', 1e4)
var txRaw = tx.buildIncomplete()
var signatureHash = txRaw.hashForSignature(0, redeemScript, hashType)