From b65e47bbae9ae8b4b4f394ddfd663ca055e4c707 Mon Sep 17 00:00:00 2001 From: Daniel Cousens Date: Thu, 13 Oct 2016 17:33:55 +1100 Subject: [PATCH] integration: break up into more re-usable unspents --- test/integration/advanced.js | 4 ++-- test/integration/basic.js | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/test/integration/advanced.js b/test/integration/advanced.js index 472e483..f778e00 100644 --- a/test/integration/advanced.js +++ b/test/integration/advanced.js @@ -11,7 +11,7 @@ describe('bitcoinjs-lib (advanced)', function () { var keyPair = bitcoin.ECPair.makeRandom({ network: network }) var address = keyPair.getAddress() - blockchain.t.faucet(address, 2e4, function (err, unspent) { + blockchain.t.faucet(address, 5e4, function (err, unspent) { if (err) return done(err) var tx = new bitcoin.TransactionBuilder(network) @@ -20,7 +20,7 @@ describe('bitcoinjs-lib (advanced)', function () { tx.addInput(unspent.txId, unspent.vout) tx.addOutput(dataScript, 1000) - tx.addOutput(blockchain.t.RETURN, 1e4) + tx.addOutput(blockchain.t.RETURN, 4e4) tx.sign(0, keyPair) var txRaw = tx.build() diff --git a/test/integration/basic.js b/test/integration/basic.js index 93d314b..f310e04 100644 --- a/test/integration/basic.js +++ b/test/integration/basic.js @@ -71,7 +71,7 @@ describe('bitcoinjs-lib (basic)', function () { blockchain.t.faucetMany([ { address: alicesAddress, - value: 2e4 + value: 4e4 }, { address: bobsAddress, @@ -83,7 +83,7 @@ describe('bitcoinjs-lib (basic)', function () { var tx = new bitcoin.TransactionBuilder(network) tx.addInput(unspents[0].txId, unspents[0].vout) tx.addInput(unspents[1].txId, unspents[1].vout) - tx.addOutput(blockchain.t.RETURN, 1e4) + tx.addOutput(blockchain.t.RETURN, 3e4) tx.addOutput('mvGVHWi6gbkBZZPaqBVRcxvKVPYd9r3fp7', 1e4) tx.sign(0, alice) tx.sign(1, bob)