From bd0be2f3430e7a5a81b776129befc004b48635da Mon Sep 17 00:00:00 2001
From: junderw <junderwood@bitcoinbank.co.jp>
Date: Thu, 15 Nov 2018 18:52:16 +0900
Subject: [PATCH 1/2] Fix errors for bitcoin core 0.17.0

---
 test/integration/cltv.js | 2 +-
 test/integration/csv.js  | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/test/integration/cltv.js b/test/integration/cltv.js
index e4a1133..2c39b2c 100644
--- a/test/integration/cltv.js
+++ b/test/integration/cltv.js
@@ -212,7 +212,7 @@ describe('bitcoinjs-lib (transactions w/ CLTV)', function () {
       regtestUtils.broadcast(tx.toHex(), function (err) {
         assert.throws(function () {
           if (err) throw err
-        }, /Error: 64: non-final/)
+        }, /Error: non-final \(code 64\)/)
 
         done()
       })
diff --git a/test/integration/csv.js b/test/integration/csv.js
index 1662a1a..5996634 100644
--- a/test/integration/csv.js
+++ b/test/integration/csv.js
@@ -132,7 +132,7 @@ describe('bitcoinjs-lib (transactions w/ CSV)', function () {
       regtestUtils.broadcast(tx.toHex(), function (err) {
         assert.throws(function () {
           if (err) throw err
-        }, /Error: 64: non-BIP68-final/)
+        }, /Error: non-BIP68-final \(code 64\)/)
 
         done()
       })

From 9c409b1274f0b671099214963a3638097ce83d77 Mon Sep 17 00:00:00 2001
From: junderw <junderwood@bitcoinbank.co.jp>
Date: Tue, 20 Nov 2018 16:28:35 +0900
Subject: [PATCH 2/2] Change regtest server over to regtest.bitbank.cc

---
 test/integration/_regtest.js | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/test/integration/_regtest.js b/test/integration/_regtest.js
index 059cec2..f392a8a 100644
--- a/test/integration/_regtest.js
+++ b/test/integration/_regtest.js
@@ -3,12 +3,12 @@ const bitcoin = require('../../')
 const dhttp = require('dhttp/200')
 
 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
 
 function broadcast (txHex, callback) {
   dhttp({
-    method: 'PUT',
+    method: 'POST',
     url: APIURL + '/t/push',
     body: txHex
   }, callback)