From 5b63d8ff92eb44651d1d244862e25364632ef39b Mon Sep 17 00:00:00 2001 From: Matias Alejo Garcia Date: Wed, 7 Mar 2018 05:03:42 -0500 Subject: [PATCH] update config URLs --- config.js | 10 ++++++++-- lib/blockchainexplorer.js | 3 ++- 2 files changed, 10 insertions(+), 3 deletions(-) diff --git a/config.js b/config.js index c04e868..0dc751d 100644 --- a/config.js +++ b/config.js @@ -54,9 +54,15 @@ var config = { livenet: { provider: 'insight', //url: 'https://cashexplorer.bitcoin.com', - url: 'http://localhost:2001', - translateAddresses: false, + url: 'https://bch-insight.bitpay.com:443', + translateAddresses: true, }, + testnet: { + provider: 'insight', + url: 'https://test-bch-insight.bitpay.com:443', + translateAddresses: true, + }, + }, }, pushNotificationsOpts: { diff --git a/lib/blockchainexplorer.js b/lib/blockchainexplorer.js index 3e8bf1a..a970317 100644 --- a/lib/blockchainexplorer.js +++ b/lib/blockchainexplorer.js @@ -18,7 +18,8 @@ var PROVIDERS = { 'testnet': 'https://test-insight.bitpay.com:443', }, 'bch': { - 'livenet': 'https://insight.bitpay.com:443', + 'livenet': 'https://bch-insight.bitpay.com:443', + 'testnet': 'https://test-bch-insight.bitpay.com:443', }, }, };