tests/integration: re-broadcast input tx to avoid missing inputs error

This commit is contained in:
Daniel Cousens 2016-01-06 12:46:02 +11:00
parent 382409c575
commit 755c344e16
3 changed files with 26 additions and 37 deletions
test/integration

View file

@ -37,12 +37,9 @@ describe('bitcoinjs-lib (multisig)', function () {
var address = bitcoin.address.fromOutputScript(scriptPubKey, bitcoin.networks.testnet)
// attempt to send funds to the source address
blockchain.t.faucet(address, 2e4, function (err, unspents) {
blockchain.t.faucet(address, 2e4, function (err, unspent) {
if (err) return done(err)
// use the oldest unspent
var unspent = unspents.pop()
// make a random destination address
var targetAddress = bitcoin.ECPair.makeRandom({
network: bitcoin.networks.testnet