Change RPC endpoint for Classic

This commit is contained in:
Victor Baranov 2019-03-27 15:54:27 +03:00
parent 4646ec6053
commit 20523f9805
4 changed files with 4 additions and 4 deletions

View File

@ -38,7 +38,7 @@ function getRPCEndpoints(network) {
case RSK_TESTNET_CODE:
return ['https://public-node.testnet.rsk.co']
case CLASSIC_CODE:
return ['https://ethereumclassic.network/']
return ['https://etc-parity.0xinfra.com']
default:
return []
}

2
package-lock.json generated
View File

@ -1,6 +1,6 @@
{
"name": "eth-net-props",
"version": "1.0.16",
"version": "1.0.17",
"lockfileVersion": 1,
"requires": true,
"dependencies": {

View File

@ -1,6 +1,6 @@
{
"name": "eth-net-props",
"version": "1.0.16",
"version": "1.0.17",
"description": "Get properties of EMV-based network",
"main": "index.js",
"directories": {

View File

@ -239,7 +239,7 @@ describe('eth-net-props', () => {
const ETCRPCEndpoints = RPCEndpoints.getRPCEndpoints('1\'')
assert.equal(ETCRPCEndpoints.length, 1)
if (ETCRPCEndpoints.length > 0) {
assert.equal(ETCRPCEndpoints[0], 'https://ethereumclassic.network/')
assert.equal(ETCRPCEndpoints[0], 'https://etc-parity.0xinfra.com')
}
})
})