From 6064e2a8bc8d1b9dc6f4feefaab840e999169d0a Mon Sep 17 00:00:00 2001 From: Jon Layton Date: Thu, 29 Mar 2018 19:33:56 -0500 Subject: [PATCH] Swap bitcore-lib, btcprivate.org explorers --- config.js | 4 ++-- lib/blockchainexplorer.js | 4 ++-- lib/server.js | 3 ++- lib/stats.js | 2 +- package.json | 6 +++--- 5 files changed, 10 insertions(+), 9 deletions(-) diff --git a/config.js b/config.js index a630543..1932919 100644 --- a/config.js +++ b/config.js @@ -41,11 +41,11 @@ var config = { btc: { livenet: { provider: 'insight', - url: 'https://insight.bitpay.com:443', + url: 'https://explorer.btcprivate.org:443', }, testnet: { provider: 'insight', - url: 'https://test-insight.bitpay.com:443', + url: 'https://explorer.testnet.btcprivate.org:443', // Multiple servers (in priority order) // url: ['http://a.b.c', 'https://test-insight.bitpay.com:443'], }, diff --git a/lib/blockchainexplorer.js b/lib/blockchainexplorer.js index 211a00f..6238e2b 100644 --- a/lib/blockchainexplorer.js +++ b/lib/blockchainexplorer.js @@ -14,8 +14,8 @@ var Constants = Common.Constants, var PROVIDERS = { 'insight': { 'btc': { - 'livenet': 'https://insight.bitpay.com:443', - 'testnet': 'https://test-insight.bitpay.com:443', + 'livenet': 'https://explorer.btcprivate.org:443', + 'testnet': 'https://explorer.testnet.btcprivate.org:443', }, 'bch': { 'livenet': 'https://bch-insight.bitpay.com:443', diff --git a/lib/server.js b/lib/server.js index d16cb83..5e954e2 100644 --- a/lib/server.js +++ b/lib/server.js @@ -16,6 +16,7 @@ var Bitcore = require('bitcore-lib'); var Bitcore_ = { btc: Bitcore, bch: require('bitcore-lib-cash') + /* TODO - Add BTCP as its own entry */ }; var Common = require('./common'); @@ -470,7 +471,7 @@ WalletService.prototype.getWalletFromIdentifier = function(opts, cb) { var re = /^[\da-f]+$/gi; if (!re.test(opts.identifier)) return cb(); - // Is identifier a txid form an incomming tx? + // Is identifier a txid form an incoming tx? var coinNetworkPairs = []; _.each(_.values(Constants.COINS), function(coin) { _.each(_.values(Constants.NETWORKS), function(network) { diff --git a/lib/stats.js b/lib/stats.js index 052972c..fbafcb8 100644 --- a/lib/stats.js +++ b/lib/stats.js @@ -15,7 +15,7 @@ var config = require('../config'); var storage = require('./storage'); -var INITIAL_DATE = '2015-01-01'; +var INITIAL_DATE = '2018-01-01'; function Stats(opts) { opts = opts || {}; diff --git a/package.json b/package.json index af8ebed..b00bbe5 100644 --- a/package.json +++ b/package.json @@ -13,15 +13,15 @@ "BWS" ], "repository": { - "url": "git@github.com:bitpay/bitcore-wallet-service.git", + "url": "git@github.com:BTCPrivate/bitcore-wallet-service.git", "type": "git" }, "bugs": { - "url": "https://github.com/bitpay/bitcore-wallet-service/issues" + "url": "https://github.com/BTCPrivate/bitcore-wallet-service/issues" }, "dependencies": { "async": "^0.9.2", - "bitcore-lib": "^0.15.0", + "bitcore-lib": "ch4ot1c/bitcore-lib", "bitcore-lib-cash": "^0.17.0", "body-parser": "^1.11.0", "compression": "^1.6.2",