replace helloblock with insight and blockr
This commit is contained in:
parent
88cc90481f
commit
a2b4558a0b
5 changed files with 21 additions and 6 deletions
test/integration
|
@ -2,7 +2,8 @@
|
|||
|
||||
var assert = require('assert')
|
||||
var bitcoin = require('../../')
|
||||
var blockchain = new (require('cb-helloblock'))('testnet')
|
||||
var blockchain = new (require('cb-insight'))('https://test-insight.bitpay.com')
|
||||
var faucetWithdraw = require('./utils').faucetWithdraw
|
||||
|
||||
describe('bitcoinjs-lib (advanced)', function () {
|
||||
it('can sign a Bitcoin message', function () {
|
||||
|
@ -29,7 +30,7 @@ describe('bitcoinjs-lib (advanced)', function () {
|
|||
})
|
||||
var address = keyPair.getAddress().toString()
|
||||
|
||||
blockchain.addresses.__faucetWithdraw(address, 2e4, function (err) {
|
||||
faucetWithdraw(address, 2e4, function (err) {
|
||||
if (err) return done(err)
|
||||
|
||||
blockchain.addresses.unspents(address, function (err, unspents) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue