tests/integration: re-broadcast input tx to avoid missing inputs error
This commit is contained in:
parent
382409c575
commit
755c344e16
3 changed files with 26 additions and 37 deletions
test/integration
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue