tests: add into-the-future CLTV test

This commit is contained in:
Daniel Cousens 2018-02-01 12:54:20 +11:00
parent 4ca6bf4e81
commit 31703e2e40
3 changed files with 56 additions and 40 deletions
test/integration

View file

@ -19,6 +19,13 @@ function mine (count, callback) {
}, callback)
}
function height (callback) {
dhttp({
method: 'GET',
url: APIURL + '/b/best/height'
}, callback)
}
function faucet (address, value, callback) {
dhttp({
method: 'POST',
@ -69,6 +76,7 @@ module.exports = {
broadcast: broadcast,
faucet: faucet,
fetch: fetch,
height: height,
mine: mine,
network: bitcoin.networks.testnet,
unspents: unspents,