Files
bch-api/config/electrumx.js
T
2020-04-07 20:57:37 -07:00

38 lines
858 B
JavaScript

/*
Config settings for working with an ElectrumX or Fulcrum server.
*/
const config = {
port: 8000,
electrum: {
application: 'bch-api',
version: '1.4.1',
confidence: 2,
distribution: 3,
// servers: [
// 'fulcrum.fountainhead.cash:50002',
// 'electrum.imaginary.cash:50002',
// 'bch.imaginary.cash:50002',
// 'electroncash.de:50002',
// 'electroncash.dk:50002',
// 'electron.jochen-hoenicke.de:51002'
// ]
serverUrl: 'fulcrum.fountainhead.cash',
serverPort: '50002'
},
ratelimit: {
windowMs: 1 * 60 * 1000,
max: 100
}
}
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