mirror of
https://github.com/fullstack-cash/bch-api.git
synced 2026-09-21 16:52:04 -07:00
Merge pull request #195 from Permissionless-Software-Foundation/ct-unstable
fix(bch-js): Trying improved bch-js instance in psf-slp-indexer.js
This commit is contained in:
+3
-1
@@ -24,7 +24,9 @@ const config = {
|
||||
: 10000,
|
||||
whitelistDomains: process.env.WHITELIST_DOMAINS
|
||||
? process.env.WHITELIST_DOMAINS.split(',')
|
||||
: ['fullstack.cash', 'psfoundation.cash', '10.0.']
|
||||
: ['fullstack.cash', 'psfoundation.cash', '10.0.'],
|
||||
|
||||
restURL: process.env.LOCAL_RESTURL ? process.env.LOCAL_RESTURL : 'http://127.0.0.1:3000/v5/'
|
||||
}
|
||||
|
||||
module.exports = config
|
||||
|
||||
@@ -7,18 +7,16 @@ const express = require('express')
|
||||
const router = express.Router()
|
||||
const axios = require('axios')
|
||||
const util = require('util')
|
||||
const BCHJS = require('@psf/bch-js')
|
||||
|
||||
// Local libraries
|
||||
const RouteUtils = require('../../util/route-utils')
|
||||
const routeUtils = new RouteUtils()
|
||||
|
||||
const BCHJS = require('@psf/bch-js')
|
||||
const bchjs = new BCHJS()
|
||||
|
||||
// Local libraries
|
||||
// const wlogger = require('../../../util/winston-logging')
|
||||
const config = require('../../../config')
|
||||
|
||||
const routeUtils = new RouteUtils()
|
||||
const bchjs = new BCHJS({restURL: config.restURL})
|
||||
|
||||
|
||||
let _this
|
||||
|
||||
class PsfSlpIndexer {
|
||||
|
||||
Reference in New Issue
Block a user