Skip to content
This repository was archived by the owner on Mar 26, 2024. It is now read-only.

Commit bee75af

Browse files
committed
update default configs - use eth mainnet as default RPC - add xdai and cth as optional chains
1 parent 6dce539 commit bee75af

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

configs.js

+8-8
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
1-
// this is the default node host used for the library, so you don't have to configure it
1+
let defaultRPCHost = "https://main-light.eth.linkpool.io" // mainnet
22

3-
// infura/cloudflare/your-own-node.example...
3+
if (process.env.CTH === "1") defaultRPCHost = "https://node.cheapeth.org/rpc"
4+
if (process.env.XDAI === "1") defaultRPCHost = "https://xdai.poanetwork.dev"
45

5-
// const RPC_HOST = "34.246.186.79"
6-
const RPC_HOST = "34.246.186.79" // /etc/hosts entry: "34.246.186.79 antani-node.dev"
7-
// run your node with "parity --chain ~/poa-chain-spec/spec.json --reserved-peers ~/poa-chain-spec/bootnodes.txt --jsonrpc-interface all --jsonrpc-hosts all --jsonrpc-cors=http://antani.dev:3000/"
8-
const RPC_PORT = 3000
9-
// replace antani.dev:3000 with your dev host
6+
defaultRPCHost = process.env.ETH_RPC_HOST || defaultRPCHost
7+
const defaultRPCPort = process.env.ETH_RPC_PORT
108

11-
// use this if you're running your own node on the same machine (your "dev box"):
9+
const RPC_HOST = defaultRPCHost
10+
const RPC_PORT = defaultRPCPort
1211

12+
// for local dev node:
1313
// const RPC_HOST = "localhost"
1414

1515
const CONFIGS = {

0 commit comments

Comments
 (0)