Swap bitcore-lib, btcprivate.org explorers

This commit is contained in:
Jon Layton 2018-03-29 19:33:56 -05:00
parent 9f27a33f0e
commit 6064e2a8bc
5 changed files with 10 additions and 9 deletions

View File

@ -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'],
},

View File

@ -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',

View File

@ -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) {

View File

@ -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 || {};

View File

@ -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",