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
12
test/integration/utils.js
Normal file
12
test/integration/utils.js
Normal file
|
@ -0,0 +1,12 @@
|
|||
var https = require('https')
|
||||
|
||||
function faucetWithdraw(address, amount, done) {
|
||||
var url = "https://coconut-macaroon.herokuapp.com/bitcoin/testnet/withdrawal?address=" + address + "&amount=" + amount
|
||||
https.get(url, function(res) {
|
||||
res.statusCode == 200 ? done(null) : done(new Error("non-200 status: " + res.statusCode))
|
||||
}).on('error', done)
|
||||
}
|
||||
|
||||
module.exports = {
|
||||
faucetWithdraw: faucetWithdraw
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue