Browse Source
Merge pull request #1262 from bitcoinjs/fixErrorText
Switch Regtest Server over to bitbank.cc subdomain and make adjustments
v4
Daniel Cousens
6 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with
4 additions and
4 deletions
-
test/integration/_regtest.js
-
test/integration/cltv.js
-
test/integration/csv.js
|
@ -3,12 +3,12 @@ const bitcoin = require('../../') |
|
|
const dhttp = require('dhttp/200') |
|
|
const dhttp = require('dhttp/200') |
|
|
|
|
|
|
|
|
const APIPASS = process.env.APIPASS || 'satoshi' |
|
|
const APIPASS = process.env.APIPASS || 'satoshi' |
|
|
const APIURL = 'https://api.dcousens.cloud/1' |
|
|
const APIURL = 'https://regtest.bitbank.cc/1' |
|
|
const NETWORK = bitcoin.networks.testnet |
|
|
const NETWORK = bitcoin.networks.testnet |
|
|
|
|
|
|
|
|
function broadcast (txHex, callback) { |
|
|
function broadcast (txHex, callback) { |
|
|
dhttp({ |
|
|
dhttp({ |
|
|
method: 'PUT', |
|
|
method: 'POST', |
|
|
url: APIURL + '/t/push', |
|
|
url: APIURL + '/t/push', |
|
|
body: txHex |
|
|
body: txHex |
|
|
}, callback) |
|
|
}, callback) |
|
|
|
@ -212,7 +212,7 @@ describe('bitcoinjs-lib (transactions w/ CLTV)', function () { |
|
|
regtestUtils.broadcast(tx.toHex(), function (err) { |
|
|
regtestUtils.broadcast(tx.toHex(), function (err) { |
|
|
assert.throws(function () { |
|
|
assert.throws(function () { |
|
|
if (err) throw err |
|
|
if (err) throw err |
|
|
}, /Error: 64: non-final/) |
|
|
}, /Error: non-final \(code 64\)/) |
|
|
|
|
|
|
|
|
done() |
|
|
done() |
|
|
}) |
|
|
}) |
|
|
|
@ -132,7 +132,7 @@ describe('bitcoinjs-lib (transactions w/ CSV)', function () { |
|
|
regtestUtils.broadcast(tx.toHex(), function (err) { |
|
|
regtestUtils.broadcast(tx.toHex(), function (err) { |
|
|
assert.throws(function () { |
|
|
assert.throws(function () { |
|
|
if (err) throw err |
|
|
if (err) throw err |
|
|
}, /Error: 64: non-BIP68-final/) |
|
|
}, /Error: non-BIP68-final \(code 64\)/) |
|
|
|
|
|
|
|
|
done() |
|
|
done() |
|
|
}) |
|
|
}) |
|
|