-
Notifications
You must be signed in to change notification settings - Fork 2.1k
Expand file tree
/
Copy pathbitcore-test.config.js
More file actions
26 lines (19 loc) · 1.27 KB
/
Copy pathbitcore-test.config.js
File metadata and controls
26 lines (19 loc) · 1.27 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
/* eslint-disable @typescript-eslint/no-require-imports */
const fs = require('fs');
const testConfig = require('./bitcore-test.config.json');
testConfig.bitcoreNode.chains.BTC.regtest.trustedPeers[0].host = 'bitcoin';
testConfig.bitcoreNode.chains.BTC.regtest.rpc.host = 'bitcoin';
testConfig.bitcoreNode.chains.BCH.regtest.trustedPeers[0].host = 'bitcoin';
testConfig.bitcoreNode.chains.BCH.regtest.rpc.host = 'bitcoin';
testConfig.bitcoreNode.chains.ETH.regtest.trustedPeers[0].host = 'geth';
testConfig.bitcoreNode.chains.ETH.regtest.trustedPeers[0].port = 30303;
testConfig.bitcoreNode.chains.ETH.regtest.providers[0].host = 'geth';
testConfig.bitcoreNode.chains.ETH.regtest.providers[0].port = 8546;
testConfig.bitcoreNode.chains.MATIC.regtest.trustedPeers[0].host = 'geth';
testConfig.bitcoreNode.chains.MATIC.regtest.trustedPeers[0].port = 30303;
testConfig.bitcoreNode.chains.MATIC.regtest.providers[0].host = 'geth';
testConfig.bitcoreNode.chains.MATIC.regtest.providers[0].port = 8546;
testConfig.bitcoreNode.chains.XRP.testnet.provider.host = 'rippled';
testConfig.bitcoreNode.chains.XRP.testnet.provider.port = 6006;
testConfig.bitcoreNode.chains.XRP.testnet.provider.dataHost = 'rippled';
fs.writeFileSync('./bitcore-test.local.config.json', JSON.stringify(testConfig, null, 2));