Browse Source

tests: avoid too-long-mempool-chain errors

hk-custom-address
Daniel Cousens 8 years ago
committed by Daniel Cousens
parent
commit
170328341b
  1. 5
      test/integration/_blockchain.js

5
test/integration/_blockchain.js

@ -13,6 +13,11 @@ var keyPair = bitcoin.ECPair.fromWIF('cQqjeq2rxqwnqwMewJhkNtJDixtX8ctA4bYoWHdxY4
var kpAddress = keyPair.getAddress()
function fundAddress (unspents, outputs, callback) {
// avoid too-long-mempool-chain
unspents = unspents.filter(function (x) {
return x.confirmations > 0
})
var result = coinSelect(unspents, outputs, 10)
if (!result.inputs) return callback(new Error('Faucet empty'))

Loading…
Cancel
Save