mirror of
https://github.com/fullstack-cash/bch-api.git
synced 2026-09-21 16:52:04 -07:00
miner changes
This commit is contained in:
+3
-1
@@ -18,7 +18,6 @@ const config = {
|
||||
// 'electron.jochen-hoenicke.de:51002'
|
||||
// ]
|
||||
serverUrl: 'fulcrum.fountainhead.cash',
|
||||
// serverUrl: 'badurl.com',
|
||||
serverPort: '50002'
|
||||
},
|
||||
ratelimit: {
|
||||
@@ -30,6 +29,9 @@ const config = {
|
||||
if (process.env.NETWORK === 'testnet') {
|
||||
config.electrum.serverUrl = 'blackie.c3-soft.com'
|
||||
config.electrum.serverPort = '60002'
|
||||
|
||||
// config.electrum.serverUrl = '192.168.0.6'
|
||||
// config.electrum.serverPort = '50001'
|
||||
}
|
||||
|
||||
module.exports = config
|
||||
|
||||
@@ -50,7 +50,7 @@ class Electrum {
|
||||
// Initializes a connection to electrum servers.
|
||||
async connect () {
|
||||
try {
|
||||
console.log('Attempting to connect to ElectrumX server...)')
|
||||
console.log('Attempting to connect to ElectrumX server...')
|
||||
|
||||
// Return immediately if a connection has already been established.
|
||||
if (_this.isReady) return true
|
||||
|
||||
Reference in New Issue
Block a user